manu commited on
Commit
40f8c3b
1 Parent(s): 6940247

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -203,7 +203,7 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
203
  with gr.Accordion(label="Parameters", open=False, elem_id="parameters-accordion"):
204
  temperature = gr.Slider(
205
  label="Temperature",
206
- value=0.5,
207
  minimum=0.1,
208
  maximum=1.0,
209
  step=0.1,
@@ -221,19 +221,19 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
221
  )
222
  max_new_tokens = gr.Slider(
223
  label="Max new tokens",
224
- value=128,
225
  minimum=0,
226
  maximum=512,
227
- step=4,
228
  interactive=True,
229
  info="The maximum numbers of new tokens",
230
  )
231
  repetition_penalty = gr.Slider(
232
  label="Repetition Penalty",
233
- value=1.1,
234
  minimum=0.0,
235
- maximum=10,
236
- step=0.1,
237
  interactive=True,
238
  info="The parameter for repetition penalty. 1.0 means no penalty.",
239
  )
 
203
  with gr.Accordion(label="Parameters", open=False, elem_id="parameters-accordion"):
204
  temperature = gr.Slider(
205
  label="Temperature",
206
+ value=0.3,
207
  minimum=0.1,
208
  maximum=1.0,
209
  step=0.1,
 
221
  )
222
  max_new_tokens = gr.Slider(
223
  label="Max new tokens",
224
+ value=256,
225
  minimum=0,
226
  maximum=512,
227
+ step=8,
228
  interactive=True,
229
  info="The maximum numbers of new tokens",
230
  )
231
  repetition_penalty = gr.Slider(
232
  label="Repetition Penalty",
233
+ value=1.05,
234
  minimum=0.0,
235
+ maximum=2,
236
+ step=0.05,
237
  interactive=True,
238
  info="The parameter for repetition penalty. 1.0 means no penalty.",
239
  )