Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -280,12 +280,12 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
| 280 |
with gr.Tabs():
|
| 281 |
with gr.TabItem("Image Inference"):
|
| 282 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 283 |
-
image_upload = gr.Image(type="pil", label="Image")
|
| 284 |
image_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 285 |
gr.Examples(examples=image_examples, inputs=[image_query, image_upload])
|
| 286 |
with gr.TabItem("Video Inference"):
|
| 287 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 288 |
-
video_upload = gr.Video(label="Video")
|
| 289 |
video_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 290 |
gr.Examples(examples=video_examples, inputs=[video_query, video_upload])
|
| 291 |
|
|
@@ -299,7 +299,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
| 299 |
with gr.Column():
|
| 300 |
with gr.Column(elem_classes="canvas-output"):
|
| 301 |
gr.Markdown("## Output")
|
| 302 |
-
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=
|
| 303 |
with gr.Accordion("(Result.md)", open=False):
|
| 304 |
markdown_output = gr.Markdown(label="(Result.Md)")
|
| 305 |
model_choice = gr.Radio(
|
|
|
|
| 280 |
with gr.Tabs():
|
| 281 |
with gr.TabItem("Image Inference"):
|
| 282 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 283 |
+
image_upload = gr.Image(type="pil", label="Image", height=290)
|
| 284 |
image_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 285 |
gr.Examples(examples=image_examples, inputs=[image_query, image_upload])
|
| 286 |
with gr.TabItem("Video Inference"):
|
| 287 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 288 |
+
video_upload = gr.Video(label="Video", height=290)
|
| 289 |
video_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 290 |
gr.Examples(examples=video_examples, inputs=[video_query, video_upload])
|
| 291 |
|
|
|
|
| 299 |
with gr.Column():
|
| 300 |
with gr.Column(elem_classes="canvas-output"):
|
| 301 |
gr.Markdown("## Output")
|
| 302 |
+
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=5, show_copy_button=True)
|
| 303 |
with gr.Accordion("(Result.md)", open=False):
|
| 304 |
markdown_output = gr.Markdown(label="(Result.Md)")
|
| 305 |
model_choice = gr.Radio(
|