manasvinid commited on
Commit
1c7b30c
·
verified ·
1 Parent(s): 2ab37ad

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +3 -3
functions.py CHANGED
@@ -418,7 +418,7 @@ def resume_pdf():
418
  text = extract_text_from_pdf(uploaded_file)
419
 
420
  # Add text to DataFrame
421
- df_rows.append({"File Name": uploaded_file.name, "Text": text})
422
 
423
  # Display extracted text
424
  st.write(f"### {uploaded_file.name}")
@@ -440,13 +440,13 @@ def job_desc_pdf():
440
  if uploaded_files:
441
  st.write("## Extracted Text from PDFs")
442
  df_rows = []
443
-
444
  # # Iterate over uploaded PDF files
445
  # for uploaded_file in uploaded_files:
446
  # text = extract_text_from_pdf(uploaded_file)
447
 
448
  # # Add text to DataFrame
449
- # df_rows.append({"File Name": uploaded_file.name, "Text": text})
450
 
451
  # # Display extracted text
452
  # st.write(f"### {uploaded_file.name}")
 
418
  text = extract_text_from_pdf(uploaded_file)
419
 
420
  # Add text to DataFrame
421
+ df_rows.append({"File Name": uploaded_file.name, "Text": text.decode("utf-8")})
422
 
423
  # Display extracted text
424
  st.write(f"### {uploaded_file.name}")
 
440
  if uploaded_files:
441
  st.write("## Extracted Text from PDFs")
442
  df_rows = []
443
+ df_rows.append({"File Name": uploaded_file.name, "Text": text.decode("utf-8")})
444
  # # Iterate over uploaded PDF files
445
  # for uploaded_file in uploaded_files:
446
  # text = extract_text_from_pdf(uploaded_file)
447
 
448
  # # Add text to DataFrame
449
+ #
450
 
451
  # # Display extracted text
452
  # st.write(f"### {uploaded_file.name}")