Spaces:
Runtime error
Runtime error
testing summary typing
Browse files
app.py
CHANGED
@@ -8,9 +8,10 @@ def get_entities(article):
|
|
8 |
return ner(article)
|
9 |
|
10 |
def make_summary(article, max_length=130, min_length=30, do_sample=False):
|
11 |
-
|
|
|
12 |
|
13 |
|
14 |
|
15 |
-
iface = gr.Interface(fn=make_summary, inputs="text", outputs=['text', 'text'])
|
16 |
iface.launch()
|
|
|
8 |
return ner(article)
|
9 |
|
10 |
def make_summary(article, max_length=130, min_length=30, do_sample=False):
|
11 |
+
summ = summarizer(article, max_length, min_length, do_sample)[0]
|
12 |
+
return summ, type(summ), get_entities(article)
|
13 |
|
14 |
|
15 |
|
16 |
+
iface = gr.Interface(fn=make_summary, inputs="text", outputs=['text', 'text', 'text'])
|
17 |
iface.launch()
|