Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,14 +110,17 @@ if uploaded_file is not None:
|
|
| 110 |
|
| 111 |
# --- PDF Download Button ---
|
| 112 |
st.subheader("Download Report")
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
|
| 111 |
# --- PDF Download Button ---
|
| 112 |
st.subheader("Download Report")
|
| 113 |
+
pdf = generate_pdf_report(cv_type, education_level, score, score_breakdown, certs, edu, visa, advice, jobs, fig)
|
| 114 |
+
|
| 115 |
+
# Generate PDF in memory and provide download button
|
| 116 |
+
pdf_buffer = io.BytesIO()
|
| 117 |
+
pdf.output(pdf_buffer)
|
| 118 |
+
pdf_buffer.seek(0)
|
| 119 |
+
|
| 120 |
+
st.download_button(
|
| 121 |
+
label="📄 Download CV Analysis Report (PDF)",
|
| 122 |
+
data=pdf_buffer,
|
| 123 |
+
file_name="cv_analysis_report.pdf",
|
| 124 |
+
mime="application/pdf"
|
| 125 |
+
)
|
| 126 |
+
|