Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,6 +33,9 @@ if uploaded_file is not None:
|
|
33 |
with st.spinner("π Please wait while we produce a summary..."):
|
34 |
try:
|
35 |
text=read_pdf(uploaded_file)
|
36 |
-
|
|
|
|
|
|
|
37 |
except Exception as e:
|
38 |
pass
|
|
|
33 |
with st.spinner("π Please wait while we produce a summary..."):
|
34 |
try:
|
35 |
text=read_pdf(uploaded_file)
|
36 |
+
summary=summarizer(text)
|
37 |
+
st.divider()
|
38 |
+
st.markdown(summary, unsafe_allow_html=True)
|
39 |
+
st.divider()
|
40 |
except Exception as e:
|
41 |
pass
|