Spaces:
Runtime error
Runtime error
Commit
•
ed124a5
1
Parent(s):
2eb9338
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def summarize(text):
|
|
20 |
max_length=130,
|
21 |
min_length=30,
|
22 |
do_sample=False)
|
23 |
-
return output
|
24 |
|
25 |
if st.button('Generate'):
|
26 |
st.write(input)
|
|
|
20 |
max_length=130,
|
21 |
min_length=30,
|
22 |
do_sample=False)
|
23 |
+
return output[0]['summary_text']
|
24 |
|
25 |
if st.button('Generate'):
|
26 |
st.write(input)
|