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

Update app.py

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