Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -266,7 +266,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
| 266 |
with gr.Tabs():
|
| 267 |
with gr.TabItem("Image Inference"):
|
| 268 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 269 |
-
image_upload = gr.Image(type="pil", label="Image")
|
| 270 |
image_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 271 |
gr.Examples(
|
| 272 |
examples=image_examples,
|
|
@@ -274,7 +274,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
| 274 |
)
|
| 275 |
with gr.TabItem("Video Inference"):
|
| 276 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 277 |
-
video_upload = gr.Video(label="Video")
|
| 278 |
video_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 279 |
gr.Examples(
|
| 280 |
examples=video_examples,
|
|
@@ -289,7 +289,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
| 289 |
with gr.Column():
|
| 290 |
with gr.Column(elem_classes="canvas-output"):
|
| 291 |
gr.Markdown("## Output")
|
| 292 |
-
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=
|
| 293 |
with gr.Accordion("(Result.md)", open=False):
|
| 294 |
markdown_output = gr.Markdown(label="Formatted Result")
|
| 295 |
model_choice = gr.Radio(
|
|
|
|
| 266 |
with gr.Tabs():
|
| 267 |
with gr.TabItem("Image Inference"):
|
| 268 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 269 |
+
image_upload = gr.Image(type="pil", label="Image", height=290)
|
| 270 |
image_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 271 |
gr.Examples(
|
| 272 |
examples=image_examples,
|
|
|
|
| 274 |
)
|
| 275 |
with gr.TabItem("Video Inference"):
|
| 276 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 277 |
+
video_upload = gr.Video(label="Video", height=290)
|
| 278 |
video_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 279 |
gr.Examples(
|
| 280 |
examples=video_examples,
|
|
|
|
| 289 |
with gr.Column():
|
| 290 |
with gr.Column(elem_classes="canvas-output"):
|
| 291 |
gr.Markdown("## Output")
|
| 292 |
+
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=5)
|
| 293 |
with gr.Accordion("(Result.md)", open=False):
|
| 294 |
markdown_output = gr.Markdown(label="Formatted Result")
|
| 295 |
model_choice = gr.Radio(
|