nlpblogs commited on
Commit
ce299a7
·
verified ·
1 Parent(s): 6831b6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -44,7 +44,7 @@ with st.sidebar:
44
  ''')
45
 
46
 
47
- model = SentenceTransformer("all-mpnet-base-v2")
48
  st.title("AI Resume Analysis based on Sentence Similarity App")
49
  st.divider()
50
  job_desc = st.text_area("Paste the job description and then press Ctrl + Enter", key="job_desc")
@@ -101,7 +101,7 @@ for i in range(1, 51): # Looping for 50 applicants
101
 
102
  st.divider()
103
  st.subheader("Visualise", divider="blue")
104
- model = SentenceTransformer("all-mpnet-base-v2")
105
 
106
  if 'upload_count' not in st.session_state:
107
  st.session_state['upload_count'] = 0
@@ -135,7 +135,7 @@ if st.session_state['upload_count'] < max_attempts:
135
  similarity_score = model.similarity(job_embedding, resume_embedding)[0][0]
136
 
137
 
138
- st.metric(label="Similarity Score between Applicant's Profile and Job Description, value=f"{similarity_score:.2f}", border=True)
139
 
140
  else:
141
  st.warning(f"Maximum upload attempts has been reached ({max_attempts}).")
 
44
  ''')
45
 
46
 
47
+ model = SentenceTransformer("sentence-transformers/all-mpnet-base-v2")
48
  st.title("AI Resume Analysis based on Sentence Similarity App")
49
  st.divider()
50
  job_desc = st.text_area("Paste the job description and then press Ctrl + Enter", key="job_desc")
 
101
 
102
  st.divider()
103
  st.subheader("Visualise", divider="blue")
104
+ model = SentenceTransformer("sentence-transformers/all-mpnet-base-v2")
105
 
106
  if 'upload_count' not in st.session_state:
107
  st.session_state['upload_count'] = 0
 
135
  similarity_score = model.similarity(job_embedding, resume_embedding)[0][0]
136
 
137
 
138
+ st.metric(label="Similarity Score between Applicant's Profile and Job Description", value=f"{similarity_score:.2f}", border=True)
139
 
140
  else:
141
  st.warning(f"Maximum upload attempts has been reached ({max_attempts}).")