yannESGI commited on
Commit
2373446
·
1 Parent(s): 01a759b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ if uploaded_file is not None:
91
  prs = Presentation()
92
 
93
  for paragraph in paragraphs:
94
- summary = summarizer(paragraph, max_length=(len(paragraph) / 2), min_length=10, do_sample=False)
95
  summary_text = add_line_breaks_to_summary(summary[0]['summary_text'], 80)
96
 
97
  # Generate and save the image to a temporary file
 
91
  prs = Presentation()
92
 
93
  for paragraph in paragraphs:
94
+ summary = summarizer(paragraph, max_length=(round(len(paragraph) / 2)), min_length=10, do_sample=False)
95
  summary_text = add_line_breaks_to_summary(summary[0]['summary_text'], 80)
96
 
97
  # Generate and save the image to a temporary file