Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
37 |
-
summary=summarizer(
|
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()
|