nlpblogs commited on
Commit
7045659
·
verified ·
1 Parent(s): 44aa9f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -40,7 +40,7 @@ with st.sidebar:
40
  ''')
41
 
42
 
43
- st.subheader("AI Resume Analysis based on Keywords App")
44
  st.divider()
45
 
46
  st.subheader("Job Description", divider="red")
@@ -61,6 +61,7 @@ if st.session_state['upload_count'] < max_attempts:
61
  text_data = ""
62
  for page in pdf_reader.pages:
63
  text_data += page.extract_text()
 
64
  data = pd.Series(text_data, name='Text')
65
  frames = [job, data]
66
  result = pd.concat(frames)
@@ -93,9 +94,9 @@ if st.session_state['upload_count'] < max_attempts:
93
 
94
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
95
  with st.popover("See result"):
96
- st.write(f"Similarity of job description with Applicant's 1 resume based on keywords {i + 1}: {similarity_score:.2f}")
97
  st.info(
98
- "A score closer to 1 (0.80, 0.90) means higher similarity between candidate profile 1 and job description. A score closer to 0 (0.20, 0.30) means lower similarity between candidate profile 1 and job description.")
99
  else:
100
  st.warning(f"You have reached the maximum upload attempts ({max_attempts}).")
101
  if 'upload_count' in st.session_state and st.session_state['upload_count'] > 0:
 
40
  ''')
41
 
42
 
43
+ st.title("AI Resume Analysis based on Keywords App")
44
  st.divider()
45
 
46
  st.subheader("Job Description", divider="red")
 
61
  text_data = ""
62
  for page in pdf_reader.pages:
63
  text_data += page.extract_text()
64
+ st.text_area("Applicant's 1 resume", value = text_data, height = 300)
65
  data = pd.Series(text_data, name='Text')
66
  frames = [job, data]
67
  result = pd.concat(frames)
 
94
 
95
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
96
  with st.popover("See result"):
97
+ st.write(f"Similarity of job description with Applicant's 1 resume based on keywords: {similarity_score:.2f}")
98
  st.info(
99
+ "A score closer to 1 (0.80, 0.90) means higher similarity between Applicant's 1 resume and job description. A score closer to 0 (0.20, 0.30) means lower similarity between Applicant's 1 resume and job description.")
100
  else:
101
  st.warning(f"You have reached the maximum upload attempts ({max_attempts}).")
102
  if 'upload_count' in st.session_state and st.session_state['upload_count'] > 0: