m-ric HF staff commited on
Commit
ceb7300
β€’
1 Parent(s): f9fcae6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -428,7 +428,7 @@ def get_beam_search_html(
428
  outputs = model.generate(
429
  **inputs,
430
  max_new_tokens=number_steps,
431
- num_beams=max(number_beams, 2),
432
  num_return_sequences=num_return_sequences,
433
  return_dict_in_generate=True,
434
  length_penalty=length_penalty,
 
428
  outputs = model.generate(
429
  **inputs,
430
  max_new_tokens=number_steps,
431
+ num_beams=number_beams,
432
  num_return_sequences=num_return_sequences,
433
  return_dict_in_generate=True,
434
  length_penalty=length_penalty,