victor HF staff commited on
Commit
5551feb
1 Parent(s): f405812

feat: Update default top_p and temperature values to 0.7 and 0.5

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -237,7 +237,7 @@ with gr.Blocks() as demo:
237
  top_p = gr.Slider(
238
  minimum=-0,
239
  maximum=1.0,
240
- value=1.0,
241
  step=0.05,
242
  interactive=True,
243
  label="Top-p (nucleus sampling)",
@@ -245,7 +245,7 @@ with gr.Blocks() as demo:
245
  temperature = gr.Slider(
246
  minimum=-0,
247
  maximum=5.0,
248
- value=1.0,
249
  step=0.1,
250
  interactive=True,
251
  label="Temperature",
 
237
  top_p = gr.Slider(
238
  minimum=-0,
239
  maximum=1.0,
240
+ value=0.7,
241
  step=0.05,
242
  interactive=True,
243
  label="Top-p (nucleus sampling)",
 
245
  temperature = gr.Slider(
246
  minimum=-0,
247
  maximum=5.0,
248
+ value=0.5,
249
  step=0.1,
250
  interactive=True,
251
  label="Temperature",