kumar989 commited on
Commit
05ad86c
β€’
1 Parent(s): 5b24454

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,8 +33,8 @@ uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
33
  if uploaded_file is not None:
34
  if st.button('Summarize Document'):
35
  with st.spinner("πŸ“š    Please wait while we produce a summary..."):
36
- # text=read_pdf(uploaded_file)
37
- summary=summarizer(uploaded_file)
38
  st.divider()
39
  st.markdown(summary, unsafe_allow_html=True)
40
  st.divider()
 
33
  if uploaded_file is not None:
34
  if st.button('Summarize Document'):
35
  with st.spinner("πŸ“š    Please wait while we produce a summary..."):
36
+ text=read_pdf(uploaded_file)
37
+ summary=summarizer(text)
38
  st.divider()
39
  st.markdown(summary, unsafe_allow_html=True)
40
  st.divider()