Sibinraj commited on
Commit
719b5df
·
verified ·
1 Parent(s): 55782b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def summarize_text(text,max_length):
25
  # Generate the summary
26
  summary_ids = model.generate(
27
  inputs,
28
- max_length=max_length,
29
  num_beams=5,
30
  )
31
 
 
25
  # Generate the summary
26
  summary_ids = model.generate(
27
  inputs,
28
+ max_length=max_length+2,
29
  num_beams=5,
30
  )
31