Spaces:
Runtime error
Runtime error
simplified summary reading
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)
|
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)[0], get_entities(article)
|
12 |
|
13 |
|
14 |
|