Spaces:
Runtime error
Runtime error
achimoraites
commited on
Commit
•
2dbf8a4
1
Parent(s):
2347b86
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,7 @@ def summarize_article(url):
|
|
18 |
try:
|
19 |
article.download()
|
20 |
article.parse()
|
21 |
-
|
22 |
-
summary = summarize(text)
|
23 |
except Exception as e:
|
24 |
return f"Failed to summarize. Error: {e}"
|
25 |
return summary
|
|
|
18 |
try:
|
19 |
article.download()
|
20 |
article.parse()
|
21 |
+
summary = summarize(article.text)
|
|
|
22 |
except Exception as e:
|
23 |
return f"Failed to summarize. Error: {e}"
|
24 |
return summary
|