Sibinraj commited on
Commit
132b757
1 Parent(s): a669ec2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -37,6 +37,7 @@ def summarize_text(text, max_length, show_length):
37
  summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
38
 
39
  summary_words = summary.split()
 
40
  if len(summary_words) > max_length:
41
  summary = ' '.join(summary_words[:max_length])
42
  elif len(summary_words) < max_length:
 
37
  summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
38
 
39
  summary_words = summary.split()
40
+ print(summary_words)
41
  if len(summary_words) > max_length:
42
  summary = ' '.join(summary_words[:max_length])
43
  elif len(summary_words) < max_length: