manasvinid commited on
Commit
d304816
·
verified ·
1 Parent(s): 7870c8d

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +3 -3
functions.py CHANGED
@@ -407,7 +407,7 @@ def resume_pdf():
407
  st.title("UPLOAD RESUMES")
408
 
409
  # Allow user to upload multiple PDF files
410
- uploaded_files = st.file_uploader("Upload PDF files", type="pdf")
411
 
412
 
413
  if uploaded_files:
@@ -447,12 +447,12 @@ def job_desc_pdf():
447
  st.title("UPLOAD JOB DESCRIPTION")
448
 
449
  # Allow user to upload multiple PDF files
450
- uploaded_files = st.file_uploader("Upload PDF files", accept_multiple_files=True, type="pdf")
451
 
452
  if uploaded_files:
453
  st.write("## Extracted Text from PDFs")
454
  df_rows = []
455
- df_rows.append({"File Name": uploaded_file.name, "Text": text.decode("utf-8")})
456
  # # Iterate over uploaded PDF files
457
  # for uploaded_file in uploaded_files:
458
  # text = extract_text_from_pdf(uploaded_file)
 
407
  st.title("UPLOAD RESUMES")
408
 
409
  # Allow user to upload multiple PDF files
410
+ uploaded_files = st.file_uploader("Upload PDF files", accept_multiple_files=True, type="pdf")
411
 
412
 
413
  if uploaded_files:
 
447
  st.title("UPLOAD JOB DESCRIPTION")
448
 
449
  # Allow user to upload multiple PDF files
450
+ uploaded_files = st.file_uploader("Upload PDF files", type="pdf")
451
 
452
  if uploaded_files:
453
  st.write("## Extracted Text from PDFs")
454
  df_rows = []
455
+ df_rows.append({"File Name":File, "Text": text})
456
  # # Iterate over uploaded PDF files
457
  # for uploaded_file in uploaded_files:
458
  # text = extract_text_from_pdf(uploaded_file)