Johnny commited on
Commit
0c91845
·
1 Parent(s): 9387654

added a 10 limit to resume uploads

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -19,10 +19,16 @@ def main():
19
  "<h3 style='text-align: center;'>AI-Powered Intelligent Resume Screening</h3>",
20
  unsafe_allow_html=True
21
  )
22
- uploaded_files = st.file_uploader("Upload Resumes (PDF Only)", accept_multiple_files=True, type=["pdf"])
 
 
 
23
  job_description = st.text_area("Enter Job Description")
24
 
25
- if st.button("Evaluate Resumes"):
 
 
 
26
  shortlisted = evaluate_resumes(uploaded_files, job_description)
27
  for candidate in shortlisted:
28
  st.write(f"**{candidate['name']}**") # removed - Score: {candidate['score']}
 
19
  "<h3 style='text-align: center;'>AI-Powered Intelligent Resume Screening</h3>",
20
  unsafe_allow_html=True
21
  )
22
+ uploaded_files = st.file_uploader(
23
+ "Upload Resumes (PDF Only, Max 10)",
24
+ accept_multiple_files=True,
25
+ type=["pdf"])
26
  job_description = st.text_area("Enter Job Description")
27
 
28
+ if uploaded_files and len(uploaded_files) > 10:
29
+ st.error("Please upload a maximum of 10 resumes.")
30
+
31
+ elif st.button("Evaluate Resumes"):
32
  shortlisted = evaluate_resumes(uploaded_files, job_description)
33
  for candidate in shortlisted:
34
  st.write(f"**{candidate['name']}**") # removed - Score: {candidate['score']}