set the maximum value of Top p parameter to 1

#2
by SaulLu - opened
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ gr.Interface(
54
  gr.inputs.Slider(1, 64, default=8, label="Tokens to generate"),
55
  gr.inputs.Slider(0.0, 1.0, default=0.1, step=0.05, label="Temperature"),
56
  gr.inputs.Slider(0, 64, default=0, step=1, label="Top K"),
57
- gr.inputs.Slider(0.0, 10, default=0.9, step=0.05, label="Top P"),
58
  gr.inputs.Checkbox(False, label="Greedy decoding"),
59
  ],
60
  gr.outputs.Textbox(label="Output"),
 
54
  gr.inputs.Slider(1, 64, default=8, label="Tokens to generate"),
55
  gr.inputs.Slider(0.0, 1.0, default=0.1, step=0.05, label="Temperature"),
56
  gr.inputs.Slider(0, 64, default=0, step=1, label="Top K"),
57
+ gr.inputs.Slider(0.0, 1, default=0.9, step=0.05, label="Top P"),
58
  gr.inputs.Checkbox(False, label="Greedy decoding"),
59
  ],
60
  gr.outputs.Textbox(label="Output"),