Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,6 +67,19 @@ if uploaded_file is not None:
|
|
| 67 |
fig = generate_timeline(cv_type, education_level, score)
|
| 68 |
st.pyplot(fig)
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
|
| 72 |
|
|
|
|
| 67 |
fig = generate_timeline(cv_type, education_level, score)
|
| 68 |
st.pyplot(fig)
|
| 69 |
|
| 70 |
+
st.subheader("Download Report")
|
| 71 |
+
if st.button("Generate PDF Report"):
|
| 72 |
+
pdf = generate_pdf_report(cv_type, education_level, score, score_breakdown, certs, edu, visa, advice, jobs, fig)
|
| 73 |
+
with tempfile.NamedTemporaryFile(delete=False, suffix=".pdf") as tmp_pdf:
|
| 74 |
+
pdf.output(tmp_pdf.name)
|
| 75 |
+
with open(tmp_pdf.name, "rb") as f:
|
| 76 |
+
st.download_button(
|
| 77 |
+
label="📄 Download CV Analysis Report (PDF)",
|
| 78 |
+
data=f,
|
| 79 |
+
file_name="cv_analysis_report.pdf",
|
| 80 |
+
mime="application/pdf"
|
| 81 |
+
)
|
| 82 |
+
|
| 83 |
|
| 84 |
|
| 85 |
|