Spaces:
Runtime error
Runtime error
Commit
·
bccbce6
1
Parent(s):
7af09fc
Update app.py
Browse files
app.py
CHANGED
@@ -23,9 +23,9 @@ def get_text(url):
|
|
23 |
|
24 |
def get_summary(article):
|
25 |
print(article)
|
26 |
-
b = summarizer(article, min_length=
|
27 |
print(b)
|
28 |
-
|
29 |
return b
|
30 |
|
31 |
with gr.Blocks() as demo:
|
|
|
23 |
|
24 |
def get_summary(article):
|
25 |
print(article)
|
26 |
+
b = summarizer(article, min_length=20, max_length=30)
|
27 |
print(b)
|
28 |
+
b = b[0]['summary_text']
|
29 |
return b
|
30 |
|
31 |
with gr.Blocks() as demo:
|