Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|