Spaces:
Running
on
Zero
Running
on
Zero
upload app
Browse files
app.py
CHANGED
|
@@ -253,6 +253,12 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 253 |
with gr.Column(scale=2):
|
| 254 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 255 |
image_upload = gr.Image(type="pil", label="Upload Image", height=290)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
|
| 257 |
with gr.Accordion("Advanced options", open=False):
|
| 258 |
max_new_tokens = gr.Slider(label="Max new tokens", minimum=1, maximum=MAX_MAX_NEW_TOKENS, step=1, value=DEFAULT_MAX_NEW_TOKENS)
|
|
@@ -260,12 +266,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 260 |
top_p = gr.Slider(label="Top-p (nucleus sampling)", minimum=0.05, maximum=1.0, step=0.05, value=0.9)
|
| 261 |
top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50)
|
| 262 |
repetition_penalty = gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.1)
|
| 263 |
-
|
| 264 |
-
image_submit = gr.Button("Submit", variant="primary")
|
| 265 |
-
gr.Examples(
|
| 266 |
-
examples=image_examples,
|
| 267 |
-
inputs=[image_query, image_upload]
|
| 268 |
-
)
|
| 269 |
with gr.Column(scale=3):
|
| 270 |
gr.Markdown("## Output", elem_id="output-title")
|
| 271 |
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=11, show_copy_button=True)
|
|
|
|
| 253 |
with gr.Column(scale=2):
|
| 254 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
| 255 |
image_upload = gr.Image(type="pil", label="Upload Image", height=290)
|
| 256 |
+
|
| 257 |
+
image_submit = gr.Button("Submit", variant="primary")
|
| 258 |
+
gr.Examples(
|
| 259 |
+
examples=image_examples,
|
| 260 |
+
inputs=[image_query, image_upload]
|
| 261 |
+
)
|
| 262 |
|
| 263 |
with gr.Accordion("Advanced options", open=False):
|
| 264 |
max_new_tokens = gr.Slider(label="Max new tokens", minimum=1, maximum=MAX_MAX_NEW_TOKENS, step=1, value=DEFAULT_MAX_NEW_TOKENS)
|
|
|
|
| 266 |
top_p = gr.Slider(label="Top-p (nucleus sampling)", minimum=0.05, maximum=1.0, step=0.05, value=0.9)
|
| 267 |
top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50)
|
| 268 |
repetition_penalty = gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.1)
|
| 269 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
with gr.Column(scale=3):
|
| 271 |
gr.Markdown("## Output", elem_id="output-title")
|
| 272 |
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=11, show_copy_button=True)
|