iisadia commited on
Commit
fcccb65
·
verified ·
1 Parent(s): 718ebd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -225,7 +225,6 @@ def main():
225
  time.sleep(0.5)
226
  st.session_state.results = results
227
 
228
- print("Final Results:", results)
229
 
230
  # Display Results
231
  if 'results' in st.session_state:
@@ -264,15 +263,13 @@ def main():
264
  with col2:
265
  if st.button("📄 Generate PDF Report", type="secondary", use_container_width=True):
266
  with st.spinner("Generating PDF..."):
267
- pdf_report = generate_pdf_report(results)
268
  with open(pdf_report, "rb") as f:
269
  st.download_button(
270
  label="⬇️ Download Full Report",
271
  data=f,
272
  file_name="Requirement_Analysis_Report.pdf",
273
- mime="application/pdf",
274
- use_container_width=True,
275
- type="primary"
276
  )
277
 
278
 
 
225
  time.sleep(0.5)
226
  st.session_state.results = results
227
 
 
228
 
229
  # Display Results
230
  if 'results' in st.session_state:
 
263
  with col2:
264
  if st.button("📄 Generate PDF Report", type="secondary", use_container_width=True):
265
  with st.spinner("Generating PDF..."):
266
+ pdf_report = generate_pdf_report(st.session_state.results)
267
  with open(pdf_report, "rb") as f:
268
  st.download_button(
269
  label="⬇️ Download Full Report",
270
  data=f,
271
  file_name="Requirement_Analysis_Report.pdf",
272
+ mime="application/pdf"
 
 
273
  )
274
 
275