Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,11 @@ import matplotlib.pyplot as plt
|
|
6 |
from resume_generation_gemini_pro import generate_gemini
|
7 |
from similarity_score_refined import similarity_main
|
8 |
from pdf2image import convert_from_path, convert_from_bytes
|
|
|
9 |
|
10 |
# Checking poppler installation
|
11 |
st.write("PDFInfo Path:", os.popen("which pdfinfo").read().strip())
|
|
|
12 |
st.write("System PATH:", os.environ['PATH'])
|
13 |
|
14 |
|
@@ -231,13 +233,13 @@ if uploaded_resume and uploaded_job_description:
|
|
231 |
save_docx_as_pdf(generated_resume, 'tailored_resume.pdf')
|
232 |
display_doc_as_image('tailored_resume.pdf')
|
233 |
|
234 |
-
with st.spinner("Computing Match"):
|
235 |
-
|
236 |
-
|
237 |
|
238 |
if generated_resume is not None:
|
239 |
from io import BytesIO
|
240 |
-
|
241 |
|
242 |
doc = Document()
|
243 |
doc.add_paragraph(generated_resume)
|
|
|
6 |
from resume_generation_gemini_pro import generate_gemini
|
7 |
from similarity_score_refined import similarity_main
|
8 |
from pdf2image import convert_from_path, convert_from_bytes
|
9 |
+
from docx import Document
|
10 |
|
11 |
# Checking poppler installation
|
12 |
st.write("PDFInfo Path:", os.popen("which pdfinfo").read().strip())
|
13 |
+
|
14 |
st.write("System PATH:", os.environ['PATH'])
|
15 |
|
16 |
|
|
|
233 |
save_docx_as_pdf(generated_resume, 'tailored_resume.pdf')
|
234 |
display_doc_as_image('tailored_resume.pdf')
|
235 |
|
236 |
+
# with st.spinner("Computing Match"):
|
237 |
+
# similarity_score, pie_colors = get_score(resume_path, job_description_path)
|
238 |
+
# display_score(similarity_score, pie_colors)
|
239 |
|
240 |
if generated_resume is not None:
|
241 |
from io import BytesIO
|
242 |
+
|
243 |
|
244 |
doc = Document()
|
245 |
doc.add_paragraph(generated_resume)
|