Spaces:
Sleeping
Sleeping
Add download button
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ if uploaded_resume and uploaded_job_description:
|
|
99 |
|
100 |
if st.button("Resume-JD Matching"):
|
101 |
with st.spinner("Computing Match"):
|
102 |
-
|
103 |
if isinstance(similarity_score, str) and '%' in similarity_score:
|
104 |
similarity_score = float(similarity_score.replace('%', ''))
|
105 |
|
@@ -135,6 +135,13 @@ if uploaded_resume and uploaded_job_description:
|
|
135 |
st.subheader("Generated Tailored Resume:")
|
136 |
st.write(generated_resume)
|
137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
else:
|
139 |
st.warning("Please upload both the resume and job description files.")
|
140 |
|
|
|
99 |
|
100 |
if st.button("Resume-JD Matching"):
|
101 |
with st.spinner("Computing Match"):
|
102 |
+
similarity_score = similarity_main(resume_path, job_description_path)
|
103 |
if isinstance(similarity_score, str) and '%' in similarity_score:
|
104 |
similarity_score = float(similarity_score.replace('%', ''))
|
105 |
|
|
|
135 |
st.subheader("Generated Tailored Resume:")
|
136 |
st.write(generated_resume)
|
137 |
|
138 |
+
st.download_button(
|
139 |
+
label="Download Resume",
|
140 |
+
data=generated_resume,
|
141 |
+
file_name="tailored_resume.docx",
|
142 |
+
mime="application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
143 |
+
)
|
144 |
+
|
145 |
else:
|
146 |
st.warning("Please upload both the resume and job description files.")
|
147 |
|