Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -250,7 +250,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
250 |
with gr.Tabs():
|
251 |
with gr.TabItem("Image Inference"):
|
252 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
253 |
-
image_upload = gr.Image(type="pil", label="Image")
|
254 |
image_submit = gr.Button("Submit", elem_classes="submit-btn")
|
255 |
gr.Examples(
|
256 |
examples=image_examples,
|
@@ -258,7 +258,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
258 |
)
|
259 |
with gr.TabItem("Video Inference"):
|
260 |
video_query = gr.Textbox(label="Query Input", placeholder="✦︎ Enter your query here...")
|
261 |
-
video_upload = gr.Video(label="Video")
|
262 |
video_submit = gr.Button("Submit", elem_classes="submit-btn")
|
263 |
gr.Examples(
|
264 |
examples=video_examples,
|
@@ -274,7 +274,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
274 |
with gr.Column():
|
275 |
with gr.Column(elem_classes="canvas-output"):
|
276 |
gr.Markdown("## Output")
|
277 |
-
output = gr.Textbox(label="Raw Output", interactive=False, lines=
|
278 |
|
279 |
with gr.Accordion("(Result.md)", open=False):
|
280 |
markdown_output = gr.Markdown()
|
|
|
250 |
with gr.Tabs():
|
251 |
with gr.TabItem("Image Inference"):
|
252 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
253 |
+
image_upload = gr.Image(type="pil", label="Image", height=290)
|
254 |
image_submit = gr.Button("Submit", elem_classes="submit-btn")
|
255 |
gr.Examples(
|
256 |
examples=image_examples,
|
|
|
258 |
)
|
259 |
with gr.TabItem("Video Inference"):
|
260 |
video_query = gr.Textbox(label="Query Input", placeholder="✦︎ Enter your query here...")
|
261 |
+
video_upload = gr.Video(label="Video", height=290)
|
262 |
video_submit = gr.Button("Submit", elem_classes="submit-btn")
|
263 |
gr.Examples(
|
264 |
examples=video_examples,
|
|
|
274 |
with gr.Column():
|
275 |
with gr.Column(elem_classes="canvas-output"):
|
276 |
gr.Markdown("## Output")
|
277 |
+
output = gr.Textbox(label="Raw Output", interactive=False, lines=5, show_copy_button=True)
|
278 |
|
279 |
with gr.Accordion("(Result.md)", open=False):
|
280 |
markdown_output = gr.Markdown()
|