Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -207,8 +207,15 @@ if uploaded_resume and uploaded_job_description:
|
|
207 |
col1, col2 = st.columns(2)
|
208 |
with col1:
|
209 |
st.markdown("### Uploaded Resume:")
|
210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
display_doc_as_image('uploaded_resume.pdf')
|
|
|
212 |
with col2:
|
213 |
st.markdown("### Tailored Resume:")
|
214 |
save_docx_as_pdf(generated_resume, 'tailored_resume.pdf')
|
|
|
207 |
col1, col2 = st.columns(2)
|
208 |
with col1:
|
209 |
st.markdown("### Uploaded Resume:")
|
210 |
+
# if resume_path.endswith('.docx'):
|
211 |
+
# save_docx_as_pdf(uploaded_resume.getvalue().decode('utf-8'), 'uploaded_resume.pdf')
|
212 |
+
if uploaded_resume.type == "application/pdf":
|
213 |
+
display_pdf_as_image(resume_path)
|
214 |
+
else:
|
215 |
+
save_docx_as_pdf(resume_path, 'uploaded_resume.pdf')
|
216 |
+
display_pdf_as_image('uploaded_resume.pdf')
|
217 |
display_doc_as_image('uploaded_resume.pdf')
|
218 |
+
|
219 |
with col2:
|
220 |
st.markdown("### Tailored Resume:")
|
221 |
save_docx_as_pdf(generated_resume, 'tailored_resume.pdf')
|