prithivMLmods commited on
Commit
f9614cc
·
verified ·
1 Parent(s): cc8d572

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=4096, 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)
 
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)