Spaces:
Runtime error
Runtime error
clean up summary text
Browse files
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 |
|