Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -319,6 +319,13 @@ css = """
|
|
| 319 |
#output-title h2 {
|
| 320 |
font-size: 2.1em !important;
|
| 321 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 322 |
"""
|
| 323 |
|
| 324 |
# Create the Gradio Interface
|
|
@@ -330,7 +337,7 @@ with gr.Blocks(css=css, theme=spring_green_theme) as demo:
|
|
| 330 |
with gr.TabItem("Image Inference"):
|
| 331 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 332 |
image_upload = gr.Image(type="pil", label="Upload Image", height=290)
|
| 333 |
-
image_submit = gr.Button("Submit", variant="primary")
|
| 334 |
gr.Examples(
|
| 335 |
examples=image_examples,
|
| 336 |
inputs=[image_query, image_upload]
|
|
@@ -338,7 +345,7 @@ with gr.Blocks(css=css, theme=spring_green_theme) as demo:
|
|
| 338 |
with gr.TabItem("Video Inference"):
|
| 339 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 340 |
video_upload = gr.Video(label="Upload Video", height=290)
|
| 341 |
-
video_submit = gr.Button("Submit", variant="primary")
|
| 342 |
gr.Examples(
|
| 343 |
examples=video_examples,
|
| 344 |
inputs=[video_query, video_upload]
|
|
|
|
| 319 |
#output-title h2 {
|
| 320 |
font-size: 2.1em !important;
|
| 321 |
}
|
| 322 |
+
.submit-btn {
|
| 323 |
+
background-color: #00FA9A !important;
|
| 324 |
+
color: white !important;
|
| 325 |
+
}
|
| 326 |
+
.submit-btn:hover {
|
| 327 |
+
background-color: #98FB98 !important;
|
| 328 |
+
}
|
| 329 |
"""
|
| 330 |
|
| 331 |
# Create the Gradio Interface
|
|
|
|
| 337 |
with gr.TabItem("Image Inference"):
|
| 338 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 339 |
image_upload = gr.Image(type="pil", label="Upload Image", height=290)
|
| 340 |
+
image_submit = gr.Button("Submit", variant="primary", elem_classes="submit-btn")
|
| 341 |
gr.Examples(
|
| 342 |
examples=image_examples,
|
| 343 |
inputs=[image_query, image_upload]
|
|
|
|
| 345 |
with gr.TabItem("Video Inference"):
|
| 346 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 347 |
video_upload = gr.Video(label="Upload Video", height=290)
|
| 348 |
+
video_submit = gr.Button("Submit", variant="primary", elem_classes="submit-btn")
|
| 349 |
gr.Examples(
|
| 350 |
examples=video_examples,
|
| 351 |
inputs=[video_query, video_upload]
|