skhage commited on
Commit
b91f48e
1 Parent(s): afc6983

clean up summary text

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ def get_entities(article):
8
  return ner(article)
9
 
10
  def make_summary(article, max_length=130, min_length=30, do_sample=False):
11
- return summarizer(article, max_length, min_length, do_sample), get_entities(article)
12
 
13
 
14
 
 
8
  return ner(article)
9
 
10
  def make_summary(article, max_length=130, min_length=30, do_sample=False):
11
+ return summarizer(article, max_length, min_length, do_sample).get('summary_text'), get_entities(article)
12
 
13
 
14