Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
|
| 62 |
|
| 63 |
def generate_social_media_post(article_text):
|
| 64 |
# Summarize the article text
|
| 65 |
-
summary = summarizer(article_text, max_length=
|
| 66 |
return summary
|
| 67 |
|
| 68 |
|
|
|
|
| 62 |
|
| 63 |
def generate_social_media_post(article_text):
|
| 64 |
# Summarize the article text
|
| 65 |
+
summary = summarizer(article_text, max_length=1000, min_length=200, do_sample=False)[0]['summary_text']
|
| 66 |
return summary
|
| 67 |
|
| 68 |
|