Spaces:
Sleeping
Sleeping
ganeshkamath89
commited on
Commit
•
94e1082
1
Parent(s):
eb21b56
adding model attribute and specifying a model that is capable of taking larger texts
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def get_wiki_summary(search):
|
|
14 |
tittle = page.title
|
15 |
text = page.text
|
16 |
#summary = page.summary[0:300]
|
17 |
-
summarizer = pipeline("summarization")
|
18 |
summary = summarizer(text)[0]["summary_text"]
|
19 |
|
20 |
return isExist, url, tittle, summary, text
|
|
|
14 |
tittle = page.title
|
15 |
text = page.text
|
16 |
#summary = page.summary[0:300]
|
17 |
+
summarizer = pipeline("summarization", model = "allenai/led-large-16384-arxiv")
|
18 |
summary = summarizer(text)[0]["summary_text"]
|
19 |
|
20 |
return isExist, url, tittle, summary, text
|