ysharma HF staff commited on
Commit
96c114b
1 Parent(s): 8d503ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ with gr.Blocks(theme=gr.themes.Soft(), fill_height=True) as demo:
131
 
132
  msg = gr.Textbox(submit_btn=True, show_label=False)
133
  with gr.Accordion('Additional inputs', open=False):
134
- max_new_tokens = gr.Slider(label="Max new tokens", minimum=1, maximum=10, step=1, value=23, )
135
  temperature = gr.Slider(label="Temperature",minimum=0.1, maximum=4.0, step=0.1, value=0.6,)
136
  top_p = gr.Slider(label="Top-p (nucleus sampling)", minimum=0.05, maximum=1.0, step=0.05, value=0.9, )
137
  top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50, )
 
131
 
132
  msg = gr.Textbox(submit_btn=True, show_label=False)
133
  with gr.Accordion('Additional inputs', open=False):
134
+ max_new_tokens = gr.Slider(label="Max new tokens", minimum=1, maximum=MAX_MAX_NEW_TOKENS, step=1, value=DEFAULT_MAX_NEW_TOKENS, )
135
  temperature = gr.Slider(label="Temperature",minimum=0.1, maximum=4.0, step=0.1, value=0.6,)
136
  top_p = gr.Slider(label="Top-p (nucleus sampling)", minimum=0.05, maximum=1.0, step=0.05, value=0.9, )
137
  top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50, )