Spaces:
Running
on
Zero
Running
on
Zero
upload app
Browse files
app.py
CHANGED
|
@@ -300,12 +300,12 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 300 |
with gr.Tabs():
|
| 301 |
with gr.TabItem("Image Inference"):
|
| 302 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 303 |
-
image_upload = gr.Image(type="pil", label="Image", height=290)
|
| 304 |
image_submit = gr.Button("Submit", variant="primary")
|
| 305 |
gr.Examples(examples=image_examples, inputs=[image_query, image_upload])
|
| 306 |
with gr.TabItem("Video Inference"):
|
| 307 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 308 |
-
video_upload = gr.Video(label="Video", height=290)
|
| 309 |
video_submit = gr.Button("Submit", variant="primary")
|
| 310 |
gr.Examples(examples=video_examples, inputs=[video_query, video_upload])
|
| 311 |
|
|
@@ -318,7 +318,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 318 |
|
| 319 |
with gr.Column(scale=3):
|
| 320 |
gr.Markdown("## Output", elem_id="output-title")
|
| 321 |
-
raw_output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=
|
| 322 |
with gr.Accordion("(Result.md)", open=False):
|
| 323 |
markdown_output = gr.Markdown()
|
| 324 |
|
|
|
|
| 300 |
with gr.Tabs():
|
| 301 |
with gr.TabItem("Image Inference"):
|
| 302 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 303 |
+
image_upload = gr.Image(type="pil", label="Upload Image", height=290)
|
| 304 |
image_submit = gr.Button("Submit", variant="primary")
|
| 305 |
gr.Examples(examples=image_examples, inputs=[image_query, image_upload])
|
| 306 |
with gr.TabItem("Video Inference"):
|
| 307 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 308 |
+
video_upload = gr.Video(label="Upload Video", height=290)
|
| 309 |
video_submit = gr.Button("Submit", variant="primary")
|
| 310 |
gr.Examples(examples=video_examples, inputs=[video_query, video_upload])
|
| 311 |
|
|
|
|
| 318 |
|
| 319 |
with gr.Column(scale=3):
|
| 320 |
gr.Markdown("## Output", elem_id="output-title")
|
| 321 |
+
raw_output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=11, show_copy_button=True)
|
| 322 |
with gr.Accordion("(Result.md)", open=False):
|
| 323 |
markdown_output = gr.Markdown()
|
| 324 |
|