Update app.py
Browse files
app.py
CHANGED
@@ -255,24 +255,16 @@ def main():
|
|
255 |
""", unsafe_allow_html=True)
|
256 |
|
257 |
# PDF Report Section
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
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;">
|