iisadia commited on
Commit
29750d7
·
verified ·
1 Parent(s): 9e4f7fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -17
app.py CHANGED
@@ -255,24 +255,16 @@ def main():
255
  """, unsafe_allow_html=True)
256
 
257
  # PDF Report Section
258
- st.subheader("📤 Generate Report")
259
- with st.container():
260
- col1, col2 = st.columns([3, 2])
261
- with col1:
262
- st.info("💡 Click below to generate a comprehensive PDF report with all analysis details")
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(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
- # Footer
276
  st.markdown("---")
277
  st.markdown("""
278
  <div style="text-align: center; color: #666; margin-top: 3rem;">
 
255
  """, unsafe_allow_html=True)
256
 
257
  # PDF Report Section
258
+ # Generate and download PDF report
259
+ pdf_report = generate_pdf_report(results)
260
+ with open(pdf_report, "rb") as f:
261
+ st.download_button(
262
+ label="Download PDF Report",
263
+ data=f,
264
+ file_name="requirements_report.pdf",
265
+ mime="application/pdf"
266
+ )
 
 
 
 
 
 
 
267
 
 
268
  st.markdown("---")
269
  st.markdown("""
270
  <div style="text-align: center; color: #666; margin-top: 3rem;">