Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -243,7 +243,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
| 243 |
with gr.Tabs():
|
| 244 |
with gr.TabItem("Image Inference"):
|
| 245 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 246 |
-
image_upload = gr.Image(type="pil", label="Image")
|
| 247 |
image_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 248 |
gr.Examples(
|
| 249 |
examples=image_examples,
|
|
@@ -251,7 +251,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
| 251 |
)
|
| 252 |
with gr.TabItem("Video Inference"):
|
| 253 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 254 |
-
video_upload = gr.Video(label="Video")
|
| 255 |
video_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 256 |
gr.Examples(
|
| 257 |
examples=video_examples,
|
|
@@ -268,7 +268,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
| 268 |
with gr.Column():
|
| 269 |
with gr.Column(elem_classes="canvas-output"):
|
| 270 |
gr.Markdown("## Output")
|
| 271 |
-
raw_output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=
|
| 272 |
|
| 273 |
with gr.Accordion("(Result.md)", open=False):
|
| 274 |
markdown_output = gr.Markdown()
|
|
|
|
| 243 |
with gr.Tabs():
|
| 244 |
with gr.TabItem("Image Inference"):
|
| 245 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 246 |
+
image_upload = gr.Image(type="pil", label="Image", height=290)
|
| 247 |
image_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 248 |
gr.Examples(
|
| 249 |
examples=image_examples,
|
|
|
|
| 251 |
)
|
| 252 |
with gr.TabItem("Video Inference"):
|
| 253 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 254 |
+
video_upload = gr.Video(label="Video", height=290)
|
| 255 |
video_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 256 |
gr.Examples(
|
| 257 |
examples=video_examples,
|
|
|
|
| 268 |
with gr.Column():
|
| 269 |
with gr.Column(elem_classes="canvas-output"):
|
| 270 |
gr.Markdown("## Output")
|
| 271 |
+
raw_output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=5, show_copy_button=True)
|
| 272 |
|
| 273 |
with gr.Accordion("(Result.md)", open=False):
|
| 274 |
markdown_output = gr.Markdown()
|