root commited on
Commit
21e0a1c
1 Parent(s): 81cf2fa
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -157,7 +157,7 @@ with gr.Blocks() as iface:
157
  maximum=1.0,
158
  value=0.8,
159
  interactive=True,
160
- label="Temperature",
161
  )
162
 
163
  len_penalty = gr.Slider(
@@ -166,16 +166,16 @@ with gr.Blocks() as iface:
166
  value=1.0,
167
  step=0.5,
168
  interactive=True,
169
- label="Length Penalty",
170
  )
171
 
172
  rep_penalty = gr.Slider(
173
  minimum=1.0,
174
- maximum=20.0,
175
- value=10.0,
176
  step=0.5,
177
  interactive=True,
178
- label="Repeat Penalty",
179
  )
180
 
181
  with gr.Row():
@@ -233,5 +233,5 @@ with gr.Blocks() as iface:
233
  inputs=[image_input, chat_input],
234
  )
235
 
236
- iface.queue(concurrency_count=1, api_open=False, max_size=20)
237
  iface.launch(enable_queue=True)
 
157
  maximum=1.0,
158
  value=0.8,
159
  interactive=True,
160
+ label="Temperature (set to 0 for greedy decoding under nucleus sampling)",
161
  )
162
 
163
  len_penalty = gr.Slider(
 
166
  value=1.0,
167
  step=0.5,
168
  interactive=True,
169
+ label="Length Penalty (larger value encourages longer sequence under beam search)",
170
  )
171
 
172
  rep_penalty = gr.Slider(
173
  minimum=1.0,
174
+ maximum=5.0,
175
+ value=1.5,
176
  step=0.5,
177
  interactive=True,
178
+ label="Repeat Penalty (larger value prevents repetition)",
179
  )
180
 
181
  with gr.Row():
 
233
  inputs=[image_input, chat_input],
234
  )
235
 
236
+ iface.queue(concurrency_count=1, api_open=False, max_size=10)
237
  iface.launch(enable_queue=True)