FGOTYT commited on
Commit
c1f217f
·
verified ·
1 Parent(s): f7c1b9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -57,15 +57,15 @@ def respond(
57
  demo = gr.ChatInterface(
58
  respond,
59
  additional_inputs=[
60
- gr.Textbox(value="(Answer on the language of the user)", label="System prompt"),
61
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
62
- gr.Slider(minimum=0.1, maximum=2.0, value=0.42, step=0.01, label="Temperature"),
63
  gr.Slider(
64
  minimum=0.1,
65
  maximum=1.0,
66
  value=0.95,
67
  step=0.05,
68
- label="Top-p (nucleus sampling)",
69
  ),
70
  ],
71
  )
 
57
  demo = gr.ChatInterface(
58
  respond,
59
  additional_inputs=[
60
+ gr.Textbox(value="(Пиши посты)", label="System prompt"),
61
+ gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Максимум новых токенов"),
62
+ gr.Slider(minimum=0.1, maximum=2.0, value=0.42, step=0.01, label="Температура (рандомность)"),
63
  gr.Slider(
64
  minimum=0.1,
65
  maximum=1.0,
66
  value=0.95,
67
  step=0.05,
68
+ label="Top-p (работает почти как температура, 0.95 = 95%)",
69
  ),
70
  ],
71
  )