pktpaulie commited on
Commit
6851fa4
·
verified ·
1 Parent(s): d713c96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -216,21 +216,21 @@ if uploaded_resume and uploaded_job_description:
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
 
230
- with col2:
231
- st.markdown("### Tailored Resume:")
232
- save_docx_as_pdf(generated_resume, 'tailored_resume.pdf')
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
 
230
+ # with col2:
231
+ # st.markdown("### Tailored Resume:")
232
+ # save_docx_as_pdf(generated_resume, 'tailored_resume.pdf')
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)