Sibinraj commited on
Commit
6e4d163
·
verified ·
1 Parent(s): 971a32d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -27,6 +27,7 @@ def summarize_text(text,max_length):
27
  summary_ids = model.generate(
28
  inputs,
29
  max_length=max_length+2,
 
30
  num_beams=5,
31
  )
32
  print(summary_ids)
 
27
  summary_ids = model.generate(
28
  inputs,
29
  max_length=max_length+2,
30
+ min_length=max_length,
31
  num_beams=5,
32
  )
33
  print(summary_ids)