Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -446,7 +446,7 @@ def create_gradio_interface():
|
|
446 |
prompt_input = gr.Textbox(label="Query Input", placeholder="✦︎ Enter the prompt")
|
447 |
image_input = gr.Image(label="Upload Image", type="pil", sources=['upload'])
|
448 |
|
449 |
-
with gr.Accordion("Advanced Settings(
|
450 |
max_new_tokens = gr.Slider(minimum=512, maximum=8192, value=2048, step=256, label="Max New Tokens")
|
451 |
temperature = gr.Slider(label="Temperature", minimum=0.1, maximum=4.0, step=0.1, value=0.6)
|
452 |
top_p = gr.Slider(label="Top-p (nucleus sampling)", minimum=0.05, maximum=1.0, step=0.05, value=0.9)
|
|
|
446 |
prompt_input = gr.Textbox(label="Query Input", placeholder="✦︎ Enter the prompt")
|
447 |
image_input = gr.Image(label="Upload Image", type="pil", sources=['upload'])
|
448 |
|
449 |
+
with gr.Accordion("Advanced Settings (PDF)", open=False):
|
450 |
max_new_tokens = gr.Slider(minimum=512, maximum=8192, value=2048, step=256, label="Max New Tokens")
|
451 |
temperature = gr.Slider(label="Temperature", minimum=0.1, maximum=4.0, step=0.1, value=0.6)
|
452 |
top_p = gr.Slider(label="Top-p (nucleus sampling)", minimum=0.05, maximum=1.0, step=0.05, value=0.9)
|