Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -421,7 +421,7 @@ def create_gradio_interface():
|
|
| 421 |
image_input_doc = gr.Image(label="Upload Image", type="pil", sources=['upload'], height=280)
|
| 422 |
prompt_input_doc = gr.Textbox(label="Query Input", placeholder="e.g., 'Transcribe the text in this document.'")
|
| 423 |
|
| 424 |
-
with gr.Accordion("Advanced
|
| 425 |
max_new_tokens = gr.Slider(minimum=256, maximum=4096, value=2048, step=128, label="Max New Tokens")
|
| 426 |
temperature = gr.Slider(label="Temperature", minimum=0.1, maximum=2.0, step=0.1, value=0.7)
|
| 427 |
top_p = gr.Slider(label="Top-p", minimum=0.1, maximum=1.0, step=0.05, value=0.9)
|
|
|
|
| 421 |
image_input_doc = gr.Image(label="Upload Image", type="pil", sources=['upload'], height=280)
|
| 422 |
prompt_input_doc = gr.Textbox(label="Query Input", placeholder="e.g., 'Transcribe the text in this document.'")
|
| 423 |
|
| 424 |
+
with gr.Accordion("Advanced Settings", open=False):
|
| 425 |
max_new_tokens = gr.Slider(minimum=256, maximum=4096, value=2048, step=128, label="Max New Tokens")
|
| 426 |
temperature = gr.Slider(label="Temperature", minimum=0.1, maximum=2.0, step=0.1, value=0.7)
|
| 427 |
top_p = gr.Slider(label="Top-p", minimum=0.1, maximum=1.0, step=0.05, value=0.9)
|