Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -210,11 +210,11 @@ if uploaded_resume and uploaded_job_description:
|
|
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 |
-
|
214 |
else:
|
215 |
save_docx_as_pdf(resume_path, 'uploaded_resume.pdf')
|
216 |
-
|
217 |
-
|
218 |
|
219 |
with col2:
|
220 |
st.markdown("### Tailored 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_doc_as_image(resume_path)
|
214 |
else:
|
215 |
save_docx_as_pdf(resume_path, 'uploaded_resume.pdf')
|
216 |
+
display_doc_as_image('uploaded_resume.pdf')
|
217 |
+
|
218 |
|
219 |
with col2:
|
220 |
st.markdown("### Tailored Resume:")
|