Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -172,19 +172,20 @@ with gr.Blocks() as demo:
|
|
| 172 |
with gr.TabItem("Image Inference"):
|
| 173 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 174 |
image_upload = gr.Image(type="pil", label="Upload Image")
|
|
|
|
| 175 |
gr.Examples(
|
| 176 |
examples=image_examples,
|
| 177 |
inputs=[image_query, image_upload]
|
| 178 |
)
|
| 179 |
-
image_submit = gr.Button("Submit")
|
| 180 |
with gr.TabItem("Video Inference"):
|
| 181 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 182 |
video_upload = gr.Video(label="Upload Video")
|
|
|
|
| 183 |
gr.Examples(
|
| 184 |
examples=video_examples,
|
| 185 |
inputs=[video_query, video_upload]
|
| 186 |
)
|
| 187 |
-
|
| 188 |
with gr.Accordion("Advanced options", open=False):
|
| 189 |
max_new_tokens = gr.Slider(label="Max new tokens", minimum=1, maximum=MAX_MAX_NEW_TOKENS, step=1, value=DEFAULT_MAX_NEW_TOKENS)
|
| 190 |
temperature = gr.Slider(label="Temperature", minimum=0.1, maximum=4.0, step=0.1, value=0.6)
|
|
|
|
| 172 |
with gr.TabItem("Image Inference"):
|
| 173 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 174 |
image_upload = gr.Image(type="pil", label="Upload Image")
|
| 175 |
+
image_submit = gr.Button("Submit")
|
| 176 |
gr.Examples(
|
| 177 |
examples=image_examples,
|
| 178 |
inputs=[image_query, image_upload]
|
| 179 |
)
|
|
|
|
| 180 |
with gr.TabItem("Video Inference"):
|
| 181 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 182 |
video_upload = gr.Video(label="Upload Video")
|
| 183 |
+
video_submit = gr.Button("Submit")
|
| 184 |
gr.Examples(
|
| 185 |
examples=video_examples,
|
| 186 |
inputs=[video_query, video_upload]
|
| 187 |
)
|
| 188 |
+
|
| 189 |
with gr.Accordion("Advanced options", open=False):
|
| 190 |
max_new_tokens = gr.Slider(label="Max new tokens", minimum=1, maximum=MAX_MAX_NEW_TOKENS, step=1, value=DEFAULT_MAX_NEW_TOKENS)
|
| 191 |
temperature = gr.Slider(label="Temperature", minimum=0.1, maximum=4.0, step=0.1, value=0.6)
|