pktpaulie commited on
Commit
d06e9c5
·
verified ·
1 Parent(s): d6222d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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