Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,4 +8,4 @@ pipe = pipeline("summarization", model="google/pegasus-xsum")
|
|
8 |
|
9 |
text=st.text_input("Write your text")
|
10 |
if st.button("Submit"):
|
11 |
-
st.write(pipe(text)[0])
|
|
|
8 |
|
9 |
text=st.text_input("Write your text")
|
10 |
if st.button("Submit"):
|
11 |
+
st.write(pipe(text)[0]["summary_text"])
|