m-ric HF staff commited on
Commit
8e8c050
1 Parent(s): 06948d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -426,7 +426,7 @@ def get_beam_search_html(input_text, number_steps, number_beams, length_penalty,
426
 
427
 
428
  def change_n_sequences(n_beams):
429
- return gr.Slider.update(maximum=n_beams)
430
 
431
 
432
  with gr.Blocks(
 
426
 
427
 
428
  def change_n_sequences(n_beams):
429
+ return gr.Slider(label="Number of sequences", minimum=1, maximum=n_beams, step=1, value=n_beams)
430
 
431
 
432
  with gr.Blocks(