Pavani2704 commited on
Commit
1b40fc5
·
verified ·
1 Parent(s): eeffb1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -16,8 +16,7 @@ if option == "Summarization":
16
  text = st.text_area("Enter text to summarize")
17
  if st.button("Summarize"):
18
  if text:
19
- summary = pipe(text)[0]["summary_text"]
20
- st.write("Summary:", summary)
21
  else:
22
  st.write("Please enter text to summarize.")
23
 
 
16
  text = st.text_area("Enter text to summarize")
17
  if st.button("Summarize"):
18
  if text:
19
+ st.write("Summary:", pipe(text)[0]["summary_text"])
 
20
  else:
21
  st.write("Please enter text to summarize.")
22