Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -94,7 +94,7 @@ class SteelBlueTheme(Soft):
|
|
| 94 |
|
| 95 |
steel_blue_theme = SteelBlueTheme()
|
| 96 |
|
| 97 |
-
MAX_MAX_NEW_TOKENS =
|
| 98 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
| 99 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
| 100 |
|
|
@@ -304,13 +304,13 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 304 |
with gr.Tabs():
|
| 305 |
with gr.TabItem("Image Inference"):
|
| 306 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 307 |
-
image_upload = gr.Image(type="pil", label="Image", height=290)
|
| 308 |
image_submit = gr.Button("Submit", variant="primary")
|
| 309 |
gr.Examples(examples=image_examples, inputs=[image_query, image_upload])
|
| 310 |
|
| 311 |
with gr.TabItem("Video Inference"):
|
| 312 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 313 |
-
video_upload = gr.Video(label="Video", height=290)
|
| 314 |
video_submit = gr.Button("Submit", variant="primary")
|
| 315 |
gr.Examples(examples=video_examples, inputs=[video_query, video_upload])
|
| 316 |
|
|
@@ -323,7 +323,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 323 |
|
| 324 |
with gr.Column(scale=3):
|
| 325 |
gr.Markdown("## Output", elem_id="output-title")
|
| 326 |
-
output = gr.Textbox(label="Raw Output", interactive=False, lines=14, show_copy_button=True)
|
| 327 |
with gr.Accordion("(Result.md)", open=False):
|
| 328 |
markdown_output = gr.Markdown()
|
| 329 |
|
|
|
|
| 94 |
|
| 95 |
steel_blue_theme = SteelBlueTheme()
|
| 96 |
|
| 97 |
+
MAX_MAX_NEW_TOKENS = 4096
|
| 98 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
| 99 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
| 100 |
|
|
|
|
| 304 |
with gr.Tabs():
|
| 305 |
with gr.TabItem("Image Inference"):
|
| 306 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 307 |
+
image_upload = gr.Image(type="pil", label="Upload Image", height=290)
|
| 308 |
image_submit = gr.Button("Submit", variant="primary")
|
| 309 |
gr.Examples(examples=image_examples, inputs=[image_query, image_upload])
|
| 310 |
|
| 311 |
with gr.TabItem("Video Inference"):
|
| 312 |
video_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 313 |
+
video_upload = gr.Video(label="Upload Video", height=290)
|
| 314 |
video_submit = gr.Button("Submit", variant="primary")
|
| 315 |
gr.Examples(examples=video_examples, inputs=[video_query, video_upload])
|
| 316 |
|
|
|
|
| 323 |
|
| 324 |
with gr.Column(scale=3):
|
| 325 |
gr.Markdown("## Output", elem_id="output-title")
|
| 326 |
+
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=14, show_copy_button=True)
|
| 327 |
with gr.Accordion("(Result.md)", open=False):
|
| 328 |
markdown_output = gr.Markdown()
|
| 329 |
|