Spaces:
Running
on
Zero
Running
on
Zero
update app (#18)
Browse files- update app (f9614ccba9e814576a90705a9803be4a86eb841e)
app.py
CHANGED
@@ -350,8 +350,8 @@ def create_gradio_interface():
|
|
350 |
prompt_input = gr.Textbox(label="Query Input", placeholder="✦︎ Enter your query", value="Describe the image!")
|
351 |
image_input = gr.Image(label="Upload Image", type="pil", sources=['upload'])
|
352 |
|
353 |
-
with gr.Accordion("Advanced Settings", open=False):
|
354 |
-
max_new_tokens = gr.Slider(minimum=512, maximum=8192, value=
|
355 |
temperature = gr.Slider(label="Temperature", minimum=0.1, maximum=4.0, step=0.1, value=0.6)
|
356 |
top_p = gr.Slider(label="Top-p (nucleus sampling)", minimum=0.05, maximum=1.0, step=0.05, value=0.9)
|
357 |
top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50)
|
|
|
350 |
prompt_input = gr.Textbox(label="Query Input", placeholder="✦︎ Enter your query", value="Describe the image!")
|
351 |
image_input = gr.Image(label="Upload Image", type="pil", sources=['upload'])
|
352 |
|
353 |
+
with gr.Accordion("Advanced Settings(pdf)", open=False):
|
354 |
+
max_new_tokens = gr.Slider(minimum=512, maximum=8192, value=2048, step=256, label="Max New Tokens")
|
355 |
temperature = gr.Slider(label="Temperature", minimum=0.1, maximum=4.0, step=0.1, value=0.6)
|
356 |
top_p = gr.Slider(label="Top-p (nucleus sampling)", minimum=0.05, maximum=1.0, step=0.05, value=0.9)
|
357 |
top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50)
|