jvamvas commited on
Commit
98210e7
1 Parent(s): c20bca8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -453,12 +453,6 @@ def get_beam_search_html(
453
  return html, markdown
454
 
455
 
456
- def change_num_return_sequences(n_beams):
457
- return gr.Slider(
458
- label="Number of sequences", minimum=1, maximum=n_beams, step=1, value=n_beams
459
- )
460
-
461
-
462
  with gr.Blocks(
463
  theme=gr.themes.Soft(
464
  primary_hue=gr.themes.colors.yellow,
@@ -494,9 +488,6 @@ This parameter will not impact the beam search paths, but only influence the cho
494
  label="Number of beams", minimum=1, maximum=4, step=1, value=4
495
  )
496
 
497
- n_beams.change(
498
- fn=change_num_return_sequences, inputs=n_beams, outputs=1
499
- )
500
  button = gr.Button()
501
  out_html = gr.Markdown()
502
  out_markdown = gr.Markdown()
 
453
  return html, markdown
454
 
455
 
 
 
 
 
 
 
456
  with gr.Blocks(
457
  theme=gr.themes.Soft(
458
  primary_hue=gr.themes.colors.yellow,
 
488
  label="Number of beams", minimum=1, maximum=4, step=1, value=4
489
  )
490
 
 
 
 
491
  button = gr.Button()
492
  out_html = gr.Markdown()
493
  out_markdown = gr.Markdown()