Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -317,12 +317,12 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 317 |
with gr.Tabs():
|
| 318 |
with gr.TabItem("Image Inference"):
|
| 319 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 320 |
-
image_upload = gr.Image(type="pil", label="Image", height=290)
|
| 321 |
image_submit = gr.Button("Submit", variant="primary")
|
| 322 |
gr.Examples(examples=image_examples, inputs=[image_query, image_upload])
|
| 323 |
with gr.TabItem("Video Inference"):
|
| 324 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 325 |
-
video_upload = gr.Video(label="Video", height=290)
|
| 326 |
video_submit = gr.Button("Submit", variant="primary")
|
| 327 |
gr.Examples(examples=video_examples, inputs=[video_query, video_upload])
|
| 328 |
with gr.Accordion("Advanced options", open=False):
|
|
@@ -333,7 +333,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 333 |
repetition_penalty = gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2)
|
| 334 |
with gr.Column(scale=3):
|
| 335 |
gr.Markdown("## Output", elem_id="output-title")
|
| 336 |
-
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=
|
| 337 |
with gr.Accordion("(Result.md)", open=False):
|
| 338 |
markdown_output = gr.Markdown(label="Formatted Result")
|
| 339 |
model_choice = gr.Radio(
|
|
|
|
| 317 |
with gr.Tabs():
|
| 318 |
with gr.TabItem("Image Inference"):
|
| 319 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 320 |
+
image_upload = gr.Image(type="pil", label="Upload Image", height=290)
|
| 321 |
image_submit = gr.Button("Submit", variant="primary")
|
| 322 |
gr.Examples(examples=image_examples, inputs=[image_query, image_upload])
|
| 323 |
with gr.TabItem("Video Inference"):
|
| 324 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 325 |
+
video_upload = gr.Video(label="Upload Video(<= 30s)", height=290)
|
| 326 |
video_submit = gr.Button("Submit", variant="primary")
|
| 327 |
gr.Examples(examples=video_examples, inputs=[video_query, video_upload])
|
| 328 |
with gr.Accordion("Advanced options", open=False):
|
|
|
|
| 333 |
repetition_penalty = gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2)
|
| 334 |
with gr.Column(scale=3):
|
| 335 |
gr.Markdown("## Output", elem_id="output-title")
|
| 336 |
+
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=11, show_copy_button=True)
|
| 337 |
with gr.Accordion("(Result.md)", open=False):
|
| 338 |
markdown_output = gr.Markdown(label="Formatted Result")
|
| 339 |
model_choice = gr.Radio(
|