Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -314,12 +314,12 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 314 |
with gr.Tabs():
|
| 315 |
with gr.TabItem("Image Inference"):
|
| 316 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 317 |
-
image_upload = gr.Image(type="pil", label="Image", height=290)
|
| 318 |
image_submit = gr.Button("Submit", variant="primary")
|
| 319 |
gr.Examples(examples=image_examples, inputs=[image_query, image_upload])
|
| 320 |
with gr.TabItem("Video Inference"):
|
| 321 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 322 |
-
video_upload = gr.Video(label="Video", height=290)
|
| 323 |
video_submit = gr.Button("Submit", variant="primary")
|
| 324 |
gr.Examples(examples=video_examples, inputs=[video_query, video_upload])
|
| 325 |
with gr.Accordion("Advanced options", open=False):
|
|
@@ -331,7 +331,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 331 |
|
| 332 |
with gr.Column(scale=3):
|
| 333 |
gr.Markdown("## Output", elem_id="output-title")
|
| 334 |
-
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=
|
| 335 |
with gr.Accordion("(Result.md)", open=False):
|
| 336 |
markdown_output = gr.Markdown(label="(Result.Md)")
|
| 337 |
|
|
|
|
| 314 |
with gr.Tabs():
|
| 315 |
with gr.TabItem("Image Inference"):
|
| 316 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 317 |
+
image_upload = gr.Image(type="pil", label="Upload Image", height=290)
|
| 318 |
image_submit = gr.Button("Submit", variant="primary")
|
| 319 |
gr.Examples(examples=image_examples, inputs=[image_query, image_upload])
|
| 320 |
with gr.TabItem("Video Inference"):
|
| 321 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 322 |
+
video_upload = gr.Video(label="Upload Video", height=290)
|
| 323 |
video_submit = gr.Button("Submit", variant="primary")
|
| 324 |
gr.Examples(examples=video_examples, inputs=[video_query, video_upload])
|
| 325 |
with gr.Accordion("Advanced options", open=False):
|
|
|
|
| 331 |
|
| 332 |
with gr.Column(scale=3):
|
| 333 |
gr.Markdown("## Output", elem_id="output-title")
|
| 334 |
+
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=11, show_copy_button=True)
|
| 335 |
with gr.Accordion("(Result.md)", open=False):
|
| 336 |
markdown_output = gr.Markdown(label="(Result.Md)")
|
| 337 |
|