Update app.py
Browse files
app.py
CHANGED
@@ -132,8 +132,9 @@ if st.session_state['upload_count'] < max_attempts:
|
|
132 |
job_embedding = model.encode([job_desc])
|
133 |
resume_embedding = model.encode([text_data])
|
134 |
similarity_score = model.similarity(job_embedding, resume_embedding)[0][0]
|
|
|
135 |
st.subheader("Similarity between Applicant's Profile and Job Description", divider = "orange")
|
136 |
-
fig = px.imshow(
|
137 |
labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
|
138 |
x=['Resume', 'Jon Description'],
|
139 |
y=['Resume', 'Job Description'])
|
|
|
132 |
job_embedding = model.encode([job_desc])
|
133 |
resume_embedding = model.encode([text_data])
|
134 |
similarity_score = model.similarity(job_embedding, resume_embedding)[0][0]
|
135 |
+
similarity_array = np.array([[similarity_score]])
|
136 |
st.subheader("Similarity between Applicant's Profile and Job Description", divider = "orange")
|
137 |
+
fig = px.imshow(similarity_array, text_auto=True,
|
138 |
labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
|
139 |
x=['Resume', 'Jon Description'],
|
140 |
y=['Resume', 'Job Description'])
|