Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def get_sentiment(text):
|
|
15 |
return label, score
|
16 |
|
17 |
#2 - Summarization Tab:
|
18 |
-
summary_pipe = pipeline("summarization", model="
|
19 |
|
20 |
def get_summary(text):
|
21 |
max_len = int(len(text.split()) * 0.35)
|
|
|
15 |
return label, score
|
16 |
|
17 |
#2 - Summarization Tab:
|
18 |
+
summary_pipe = pipeline("summarization", model="google/pegasus-cnn_dailymail")
|
19 |
|
20 |
def get_summary(text):
|
21 |
max_len = int(len(text.split()) * 0.35)
|