m-ric HF staff commited on
Commit
93a00aa
1 Parent(s): a45a1f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -443,11 +443,11 @@ Play with the parameters below to understand how beam search decoding works!
443
 
444
  #### <span style='color:var(--primary-500)!important'>Parameters:</span>
445
  - **Sentence to decode from** (`inputs`): the input sequence to your decoder.
446
- - **Number of steps** (`max_new_tokens`): the number of tokens to generate
447
- - **Number of beams** (`num_beams`): the number of beams to use
448
  - **Length penalty** (`length_penalty`): the length penalty to apply to outputs. `length_penalty` > 0.0 promotes longer sequences, while `length_penalty` < 0.0 encourages shorter sequences.
449
  This parameter will not impact the beam search paths, but only influence the choice of sequences in the end towards longer or shorter sequences.
450
- - **Number of return sequences** (`num_return_sequences`): the number of sequences to be returned at the end of generation. Should be `<= num_beams'
451
  """
452
  )
453
  text = gr.Textbox(
 
443
 
444
  #### <span style='color:var(--primary-500)!important'>Parameters:</span>
445
  - **Sentence to decode from** (`inputs`): the input sequence to your decoder.
446
+ - **Number of steps** (`max_new_tokens`): the number of tokens to generate.
447
+ - **Number of beams** (`num_beams`): the number of beams to use.
448
  - **Length penalty** (`length_penalty`): the length penalty to apply to outputs. `length_penalty` > 0.0 promotes longer sequences, while `length_penalty` < 0.0 encourages shorter sequences.
449
  This parameter will not impact the beam search paths, but only influence the choice of sequences in the end towards longer or shorter sequences.
450
+ - **Number of return sequences** (`num_return_sequences`): the number of sequences to be returned at the end of generation. Should be `<= num_beams`.
451
  """
452
  )
453
  text = gr.Textbox(