Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -216,21 +216,20 @@ if uploaded_resume and uploaded_job_description:
|
|
216 |
""", unsafe_allow_html=True)
|
217 |
|
218 |
col1, col2 = st.columns(2)
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
# display_doc_as_image('tailored_resume.pdf')
|
234 |
|
235 |
with st.spinner("Computing Match"):
|
236 |
similarity_score, pie_colors = get_score(resume_path, job_description_path)
|
|
|
216 |
""", unsafe_allow_html=True)
|
217 |
|
218 |
col1, col2 = st.columns(2)
|
219 |
+
with col1:
|
220 |
+
st.markdown("### Uploaded Resume:")
|
221 |
+
# if resume_path.endswith('.docx'):
|
222 |
+
# save_docx_as_pdf(uploaded_resume.getvalue().decode('utf-8'), 'uploaded_resume.pdf')
|
223 |
+
# if uploaded_resume.type == "application/pdf":
|
224 |
+
# display_doc_as_image(resume_path)
|
225 |
+
# else:
|
226 |
+
save_docx_as_pdf(resume_path, 'uploaded_resume.pdf')
|
227 |
+
display_doc_as_image('uploaded_resume.pdf')
|
228 |
+
|
229 |
+
with col2:
|
230 |
+
st.markdown("### Tailored Resume:")
|
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 |
similarity_score, pie_colors = get_score(resume_path, job_description_path)
|