Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ visit_webpage = VisitWebpageTool()
|
|
34 |
|
35 |
|
36 |
# 2. Text Summarizer
|
37 |
-
summarizer = pipeline("summarization", model="
|
38 |
def text_summarizer(text: str) -> str:
|
39 |
try:
|
40 |
summary = summarizer(text, max_length=1000, min_length=20, do_sample=False)
|
|
|
34 |
|
35 |
|
36 |
# 2. Text Summarizer
|
37 |
+
summarizer = pipeline("summarization", model="Falconsai/text_summarization")
|
38 |
def text_summarizer(text: str) -> str:
|
39 |
try:
|
40 |
summary = summarizer(text, max_length=1000, min_length=20, do_sample=False)
|