Omnibus commited on
Commit
15d2f8d
·
verified ·
1 Parent(s): 7b32f49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -150,7 +150,7 @@ with gr.Blocks() as app:
150
  stop_button=gr.Button("Stop")
151
  clear_btn = gr.Button("Clear")
152
  with gr.Row():
153
- tokens=additional_inputs[2]
154
  json_out=gr.JSON()
155
  e_box=gr.Textbox()
156
  #text=gr.JSON()
 
150
  stop_button=gr.Button("Stop")
151
  clear_btn = gr.Button("Clear")
152
  with gr.Row():
153
+ tokens = gr.Slider(label="Max new tokens",value=1048,minimum=0,maximum=1048*10,step=64,interactive=True,info="The maximum numbers of new tokens")
154
  json_out=gr.JSON()
155
  e_box=gr.Textbox()
156
  #text=gr.JSON()