Pavani2704 commited on
Commit
5efd27e
·
verified ·
1 Parent(s): 301be9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"])