Jofthomas HF staff commited on
Commit
6b2710b
·
verified ·
1 Parent(s): b616ebc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -470,11 +470,6 @@ def get_beam_search_html(
470
  return html, markdown
471
 
472
 
473
- def change_num_return_sequences(n_beams):
474
- return gr.Slider(
475
- label="Number of sequences", minimum=1, maximum=n_beams, step=1, value=n_beams
476
- )
477
-
478
 
479
  with gr.Blocks(
480
  theme=gr.themes.Soft(
@@ -493,9 +488,6 @@ with gr.Blocks(
493
  n_beams=1
494
  length_penalty=1
495
  num_return_sequences=3
496
- n_beams.change(
497
- fn=change_num_return_sequences, inputs=n_beams, outputs=num_return_sequences
498
- )
499
  button = gr.Button()
500
  out_html = gr.Markdown()
501
  out_markdown = gr.Markdown()
 
470
  return html, markdown
471
 
472
 
 
 
 
 
 
473
 
474
  with gr.Blocks(
475
  theme=gr.themes.Soft(
 
488
  n_beams=1
489
  length_penalty=1
490
  num_return_sequences=3
 
 
 
491
  button = gr.Button()
492
  out_html = gr.Markdown()
493
  out_markdown = gr.Markdown()