Shreyas94 commited on
Commit
16bc77f
·
verified ·
1 Parent(s): 4b4805d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -254,10 +254,10 @@ interface = gr.Interface(
254
  gr.Textbox(label="Chat History", placeholder="Chat history will appear here..."),
255
  gr.Checkbox(label="Perform Web Search"),
256
  gr.Radio(["Greedy", "Top P Sampling"], label="Decoding strategy"),
257
- gr.Slider(minimum=0.0, maximum=2.0, step=0.05, label="Sampling temperature", default=0.5),
258
- gr.Slider(minimum=1, maximum=16000, step=64, label="Maximum number of new tokens to generate", default=2048),
259
- gr.Slider(minimum=0.01, maximum=5.0, step=0.01, label="Repetition penalty", default=1),
260
- gr.Slider(minimum=0.01, maximum=0.99, step=0.01, label="Top P", default=0.9)
261
  ],
262
  outputs=gr.Textbox(label="Assistant Response"),
263
  live=True
 
254
  gr.Textbox(label="Chat History", placeholder="Chat history will appear here..."),
255
  gr.Checkbox(label="Perform Web Search"),
256
  gr.Radio(["Greedy", "Top P Sampling"], label="Decoding strategy"),
257
+ gr.Slider(minimum=0.0, maximum=2.0, step=0.05, label="Sampling temperature", value=0.5),
258
+ gr.Slider(minimum=1, maximum=16000, step=64, label="Maximum number of new tokens to generate", value=2048),
259
+ gr.Slider(minimum=0.01, maximum=5.0, step=0.01, label="Repetition penalty", value=1),
260
+ gr.Slider(minimum=0.01, maximum=0.99, step=0.01, label="Top P", value=0.9)
261
  ],
262
  outputs=gr.Textbox(label="Assistant Response"),
263
  live=True