manasvinid commited on
Commit
70af404
·
verified ·
1 Parent(s): b2c65aa

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +2 -1
functions.py CHANGED
@@ -447,10 +447,11 @@ 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", type="pdf")
451
 
452
  if uploaded_files:
453
  st.write("## Extracted Text from PDFs")
 
454
  df_rows = []
455
  df_rows.append({"File Name":f"File_{1}", "Text": text})
456
  # # Iterate over uploaded PDF files
 
447
  st.title("UPLOAD JOB DESCRIPTION")
448
 
449
  # Allow user to upload multiple PDF files
450
+ uploaded_file = st.file_uploader("Upload PDF file", type="pdf")
451
 
452
  if uploaded_files:
453
  st.write("## Extracted Text from PDFs")
454
+ text = extract_text_from_pdf(uploaded_file)
455
  df_rows = []
456
  df_rows.append({"File Name":f"File_{1}", "Text": text})
457
  # # Iterate over uploaded PDF files