Update app.py
Browse files
app.py
CHANGED
@@ -113,10 +113,10 @@ if st.session_state['upload_count'] < max_attempts:
|
|
113 |
|
114 |
st.subheader("A score closer to 1 means closer match")
|
115 |
|
116 |
-
|
117 |
x=['text1', 'Jon Description'],
|
118 |
y=['text1', 'Job Description'])
|
119 |
-
st.plotly_chart(
|
120 |
|
121 |
st.subheader("Cosine Similarity Scores (Job Description vs. Resumes):")
|
122 |
for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
|
@@ -161,10 +161,10 @@ if st.session_state['upload_count'] < max_attempts:
|
|
161 |
df = pd.DataFrame(entities)
|
162 |
st.dataframe(entities)
|
163 |
st.dataframe(df)
|
164 |
-
|
165 |
values='score', color='label')
|
166 |
-
|
167 |
-
st.plotly_chart(
|
168 |
vectorizer = TfidfVectorizer()
|
169 |
tfidf_matrix = vectorizer.fit_transform(result)
|
170 |
tfidf_df = pd.DataFrame(tfidf_matrix.toarray(), columns=vectorizer.get_feature_names_out())
|
@@ -179,10 +179,10 @@ if st.session_state['upload_count'] < max_attempts:
|
|
179 |
|
180 |
st.subheader("A score closer to 1 means closer match")
|
181 |
|
182 |
-
|
183 |
x=['text1', 'Jon Description'],
|
184 |
y=['text1', 'Job Description'])
|
185 |
-
st.plotly_chart(
|
186 |
|
187 |
st.subheader("Cosine Similarity Scores (Job Description vs. Resumes):")
|
188 |
for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
|
|
|
113 |
|
114 |
st.subheader("A score closer to 1 means closer match")
|
115 |
|
116 |
+
fig2 = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Cosine similarity", y="Text", color="Productivity"),
|
117 |
x=['text1', 'Jon Description'],
|
118 |
y=['text1', 'Job Description'])
|
119 |
+
st.plotly_chart(fig2, key = "fig2")
|
120 |
|
121 |
st.subheader("Cosine Similarity Scores (Job Description vs. Resumes):")
|
122 |
for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
|
|
|
161 |
df = pd.DataFrame(entities)
|
162 |
st.dataframe(entities)
|
163 |
st.dataframe(df)
|
164 |
+
fig3 = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
|
165 |
values='score', color='label')
|
166 |
+
fig3.update_layout(margin = dict(t=50, l=25, r=25, b=25))
|
167 |
+
st.plotly_chart(fig3, key = "fig3")
|
168 |
vectorizer = TfidfVectorizer()
|
169 |
tfidf_matrix = vectorizer.fit_transform(result)
|
170 |
tfidf_df = pd.DataFrame(tfidf_matrix.toarray(), columns=vectorizer.get_feature_names_out())
|
|
|
179 |
|
180 |
st.subheader("A score closer to 1 means closer match")
|
181 |
|
182 |
+
fig4 = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Cosine similarity", y="Text", color="Productivity"),
|
183 |
x=['text1', 'Jon Description'],
|
184 |
y=['text1', 'Job Description'])
|
185 |
+
st.plotly_chart(fig4, key ="fig4")
|
186 |
|
187 |
st.subheader("Cosine Similarity Scores (Job Description vs. Resumes):")
|
188 |
for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
|