nlpblogs commited on
Commit
658a20b
·
verified ·
1 Parent(s): 63bbd4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -51,7 +51,7 @@ if 'applicant_data' not in st.session_state:
51
 
52
  max_attempts = 20
53
 
54
- for i in range(1, 3): # Looping for 2 applicants
55
  st.subheader(f"Applicant Resume {i}", divider="green")
56
  applicant_key = f"applicant_{i}"
57
  upload_key = f"candidate_{i}"
@@ -86,9 +86,9 @@ for i in range(1, 3): # Looping for 2 applicants
86
  st.subheader(f"Similarity Analysis for Applicant {i}")
87
  for j, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
88
  with st.popover("See result"):
89
- st.write(f"Similarity based on keyword: {similarity_score:.2f}")
90
  st.info(
91
- f"A score closer to 1 means higher similarity between Applicant's {i} resume and job description.")
92
  st.session_state['applicant_data'][applicant_key]['analysis_done'] = True
93
 
94
  else:
 
51
 
52
  max_attempts = 20
53
 
54
+ for i in range(1, 11): # Looping for 2 applicants
55
  st.subheader(f"Applicant Resume {i}", divider="green")
56
  applicant_key = f"applicant_{i}"
57
  upload_key = f"candidate_{i}"
 
86
  st.subheader(f"Similarity Analysis for Applicant {i}")
87
  for j, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
88
  with st.popover("See result"):
89
+ st.write(f"Similarity between Applicant's resume and job description based on keywords: {similarity_score:.2f}")
90
  st.info(
91
+ f"A score closer to 1 (0.80, 0.90) means higher similarity between Applicant's {i} resume and job description. A score closer to 0 (0.20, 0.30) means lower similarity between Applicant's {i} resume and job description.")
92
  st.session_state['applicant_data'][applicant_key]['analysis_done'] = True
93
 
94
  else: