Spaces:
Sleeping
Sleeping
Update functions.py
Browse files- 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 |
-
|
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
|