m-ric HF staff commited on
Commit
5e72e33
β€’
1 Parent(s): 1447899

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -368,7 +368,7 @@ def get_beam_search_html(input_text, number_steps, number_beams, length_penalty)
368
  num_beams=number_beams,
369
  num_return_sequences=number_beams,
370
  return_dict_in_generate=True,
371
- length_penalty=-10.0,
372
  output_scores=True,
373
  do_sample=False,
374
  )
 
368
  num_beams=number_beams,
369
  num_return_sequences=number_beams,
370
  return_dict_in_generate=True,
371
+ length_penalty=length_penalty,
372
  output_scores=True,
373
  do_sample=False,
374
  )