BenBranyon commited on
Commit
863b709
·
verified ·
1 Parent(s): c094718

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -1
app.py CHANGED
@@ -107,7 +107,13 @@ demo = gr.ChatInterface(
107
  textbox=gr.Textbox(placeholder="Give me a song title, or a question", container=False, scale=7),
108
  css="styles.css",
109
  additional_inputs=[
110
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
 
 
 
 
 
111
  gr.Slider(minimum=0.1, maximum=4.0, value=0.6, step=0.1, label="Temperature"),
112
  gr.Slider(
113
  minimum=0.1,
@@ -116,6 +122,20 @@ demo = gr.ChatInterface(
116
  step=0.05,
117
  label="Top-p (nucleus sampling)",
118
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  ],
120
  )
121
 
 
107
  textbox=gr.Textbox(placeholder="Give me a song title, or a question", container=False, scale=7),
108
  css="styles.css",
109
  additional_inputs=[
110
+ gr.Slider(
111
+ label="Max new tokens",
112
+ minimum=1,
113
+ maximum=MAX_MAX_NEW_TOKENS,
114
+ step=1,
115
+ value=DEFAULT_MAX_NEW_TOKENS,
116
+ ),
117
  gr.Slider(minimum=0.1, maximum=4.0, value=0.6, step=0.1, label="Temperature"),
118
  gr.Slider(
119
  minimum=0.1,
 
122
  step=0.05,
123
  label="Top-p (nucleus sampling)",
124
  ),
125
+ gr.Slider(
126
+ label="Top-k",
127
+ minimum=1,
128
+ maximum=1000,
129
+ step=1,
130
+ value=50,
131
+ ),
132
+ gr.Slider(
133
+ label="Repetition penalty",
134
+ minimum=1.0,
135
+ maximum=2.0,
136
+ step=0.05,
137
+ value=1.2,
138
+ ),
139
  ],
140
  )
141