Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -574,12 +574,13 @@ if uploaded_resume and uploaded_job_description:
|
|
574 |
resume_bytes.seek(0)
|
575 |
|
576 |
# Save the .docx to a temporary file
|
577 |
-
gen_docx_path = save_bytes_to_tempfile(resume_bytes.getvalue())
|
578 |
|
579 |
# Convert the generated .docx to a .pdf
|
580 |
# gen_pdf_path = '/tmp/tailored_resume.pdf'
|
581 |
gen_pdf_path = save_uploaded_file(gen_docx_path)
|
582 |
-
save_docx_as_pdf6(gen_docx_path, gen_pdf_path)
|
|
|
583 |
# save_docx_as_pdf2(gen_docx_path, gen_pdf_path)
|
584 |
|
585 |
# Display uploaded and generated resumes side-by-side
|
|
|
574 |
resume_bytes.seek(0)
|
575 |
|
576 |
# Save the .docx to a temporary file
|
577 |
+
gen_docx_path = save_bytes_to_tempfile(resume_bytes.getvalue(), 'docx')
|
578 |
|
579 |
# Convert the generated .docx to a .pdf
|
580 |
# gen_pdf_path = '/tmp/tailored_resume.pdf'
|
581 |
gen_pdf_path = save_uploaded_file(gen_docx_path)
|
582 |
+
# save_docx_as_pdf6(gen_docx_path, gen_pdf_path)
|
583 |
+
save_bytes_as_pdf(gen_docx_path, gen_pdf_path)
|
584 |
# save_docx_as_pdf2(gen_docx_path, gen_pdf_path)
|
585 |
|
586 |
# Display uploaded and generated resumes side-by-side
|