guipenedo HF staff commited on
Commit
f441bd4
1 Parent(s): d1590ee

Change parameters to match the endpoint's validation

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -88,7 +88,7 @@ additional_inputs=[
88
  label="Max new tokens",
89
  value=256,
90
  minimum=0,
91
- maximum=8192,
92
  step=64,
93
  interactive=True,
94
  info="The maximum numbers of new tokens",
@@ -96,8 +96,8 @@ additional_inputs=[
96
  gr.Slider(
97
  label="Top-p (nucleus sampling)",
98
  value=0.90,
99
- minimum=0.0,
100
- maximum=1,
101
  step=0.05,
102
  interactive=True,
103
  info="Higher values sample more low-probability tokens",
 
88
  label="Max new tokens",
89
  value=256,
90
  minimum=0,
91
+ maximum=3000,
92
  step=64,
93
  interactive=True,
94
  info="The maximum numbers of new tokens",
 
96
  gr.Slider(
97
  label="Top-p (nucleus sampling)",
98
  value=0.90,
99
+ minimum=0.01,
100
+ maximum=0.99,
101
  step=0.05,
102
  interactive=True,
103
  info="Higher values sample more low-probability tokens",