Spaces:
Runtime error
Runtime error
Fix #3
Browse files
app.py
CHANGED
@@ -80,16 +80,18 @@ if st.button('Summarize pdf content'):
|
|
80 |
with st.spinner('Extracting text from PDF...'):
|
81 |
pdf_input = extract_text(uploaded_pdf)
|
82 |
st.success('Text extracted')
|
83 |
-
|
|
|
84 |
pdf_output = []
|
85 |
|
86 |
for stack in pdf_input:
|
87 |
summarize_text(stack)
|
88 |
pdf_output.append(stack)
|
89 |
-
|
90 |
-
with st.spinner('Summarizing extracted text...'):
|
91 |
pdf_summary = '\n\n'.join(pdf_output)
|
92 |
st.success('Summary complete')
|
|
|
|
|
93 |
st.markdown(f'''
|
94 |
<div style="background-color: black; color: white; font-weight: bold; padding: 1rem; border-radius: 10px;">
|
95 |
<h4>Download the summary here </h4>
|
|
|
80 |
with st.spinner('Extracting text from PDF...'):
|
81 |
pdf_input = extract_text(uploaded_pdf)
|
82 |
st.success('Text extracted')
|
83 |
+
|
84 |
+
with st.spinner('Summarizing extracted text...'):
|
85 |
pdf_output = []
|
86 |
|
87 |
for stack in pdf_input:
|
88 |
summarize_text(stack)
|
89 |
pdf_output.append(stack)
|
90 |
+
|
|
|
91 |
pdf_summary = '\n\n'.join(pdf_output)
|
92 |
st.success('Summary complete')
|
93 |
+
|
94 |
+
|
95 |
st.markdown(f'''
|
96 |
<div style="background-color: black; color: white; font-weight: bold; padding: 1rem; border-radius: 10px;">
|
97 |
<h4>Download the summary here </h4>
|