tensorkelechi commited on
Commit
f93f73f
·
verified ·
1 Parent(s): 5ab1485

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -97,17 +97,16 @@ if st.button('Summarize pdf content'):
97
  </div>
98
  ''', unsafe_allow_html=True)
99
 
100
- generate_download_button = st.button('Generate')
101
  st.success('PDF page summarized :)', icon="✅")
102
 
103
 
104
  # Summary text to PDF function
105
- def summary_download():
106
- # summary_pdf = pdfkit.from_string(pdf_summary, 'Summary.pdf')
107
- st.download_button(label='Download summary PDF', data=pdf_summary, file_name='summary.pdf', mime='application/pdf')
108
 
109
- if generate_download_button:
110
- summary_download()
111
 
112
 
113
  st.write('')
 
97
  </div>
98
  ''', unsafe_allow_html=True)
99
 
 
100
  st.success('PDF page summarized :)', icon="✅")
101
 
102
 
103
  # Summary text to PDF function
104
+ def summary_download():
105
+ # summary_pdf = pdfkit.from_string(pdf_summary, 'Summary.pdf')
106
+ st.download_button(label='Download summary PDF', data=pdf_summary, file_name='summary.pdf', mime='application/pdf')
107
 
108
+ if st.button('Generate pdf download link'):
109
+ summary_download()
110
 
111
 
112
  st.write('')