meshsl commited on
Commit
29cde94
·
verified ·
1 Parent(s): d89590d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="facebook/bart-large-cnn")
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)