Update app.py
Browse files
app.py
CHANGED
@@ -85,6 +85,16 @@ for i in range(1, 51): # Looping for 2 applicants
|
|
85 |
cosine_sim_matrix = cosine_similarity(tfidf_matrix)
|
86 |
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
for j, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
|
89 |
with st.popover(f"See Result for Applicant {i}"):
|
90 |
st.write(f"Similarity between Applicant's resume and job description based on keywords: {similarity_score:.2f}")
|
|
|
85 |
cosine_sim_matrix = cosine_similarity(tfidf_matrix)
|
86 |
|
87 |
|
88 |
+
|
89 |
+
cosine_sim_df = pd.DataFrame(cosine_sim_matrix)
|
90 |
+
fig = px.imshow(cosine_sim_df, text_auto=True,
|
91 |
+
labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
|
92 |
+
x=['Resume', 'Jon Description'],
|
93 |
+
y=['Resume', 'Job Description'])
|
94 |
+
st.plotly_chart(fig)
|
95 |
+
|
96 |
+
|
97 |
+
|
98 |
for j, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
|
99 |
with st.popover(f"See Result for Applicant {i}"):
|
100 |
st.write(f"Similarity between Applicant's resume and job description based on keywords: {similarity_score:.2f}")
|