Parthiban97 commited on
Commit
2961648
·
verified ·
1 Parent(s): f3f6374

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -28,7 +28,7 @@ def get_pdf_text(pdf_docs):
28
  for para in doc_reader.paragraphs:
29
  text += para.text + "\n"
30
  except ImportError:
31
- pass
32
  return text
33
 
34
  # Define input prompts
@@ -84,8 +84,6 @@ with st.sidebar:
84
  uploaded_files = st.file_uploader("Upload Your Resume in .PDF or .DOCX format 📂", type=["pdf", "docx"], accept_multiple_files=True)
85
  if uploaded_files:
86
  st.success("Files Uploaded Successfully.")
87
- else:
88
- st.error("Please upload a PDF or DOCX file to proceed.")
89
 
90
  # Set the API key for genai
91
  if api_key:
 
28
  for para in doc_reader.paragraphs:
29
  text += para.text + "\n"
30
  except ImportError:
31
+ st.error("Please make sure you have installed the `python-docx` package.")
32
  return text
33
 
34
  # Define input prompts
 
84
  uploaded_files = st.file_uploader("Upload Your Resume in .PDF or .DOCX format 📂", type=["pdf", "docx"], accept_multiple_files=True)
85
  if uploaded_files:
86
  st.success("Files Uploaded Successfully.")
 
 
87
 
88
  # Set the API key for genai
89
  if api_key: