Update app.py
Browse files
app.py
CHANGED
@@ -128,6 +128,7 @@ if st.session_state['upload_count'] < max_attempts:
|
|
128 |
labels = ["person", "country", "organization", "role", "skills"]
|
129 |
entities = model.predict_entities(text_data, labels)
|
130 |
df = pd.DataFrame(entities)
|
|
|
131 |
fig = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
|
132 |
values='score', color='label')
|
133 |
fig.update_layout(margin=dict(t=50, l=25, r=25, b=25))
|
@@ -137,6 +138,7 @@ if st.session_state['upload_count'] < max_attempts:
|
|
137 |
tfidf_df = pd.DataFrame(tfidf_matrix.toarray(), columns=vectorizer.get_feature_names_out())
|
138 |
cosine_sim_matrix = cosine_similarity(tfidf_matrix)
|
139 |
cosine_sim_df = pd.DataFrame(cosine_sim_matrix)
|
|
|
140 |
|
141 |
fig = px.imshow(cosine_sim_df, text_auto=True,
|
142 |
labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
|
|
|
128 |
labels = ["person", "country", "organization", "role", "skills"]
|
129 |
entities = model.predict_entities(text_data, labels)
|
130 |
df = pd.DataFrame(entities)
|
131 |
+
st.subheader("Applicant's Profile", divider = "orange")
|
132 |
fig = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
|
133 |
values='score', color='label')
|
134 |
fig.update_layout(margin=dict(t=50, l=25, r=25, b=25))
|
|
|
138 |
tfidf_df = pd.DataFrame(tfidf_matrix.toarray(), columns=vectorizer.get_feature_names_out())
|
139 |
cosine_sim_matrix = cosine_similarity(tfidf_matrix)
|
140 |
cosine_sim_df = pd.DataFrame(cosine_sim_matrix)
|
141 |
+
st.subheader("Similarity between Applicant's Profile and job description", divider = "orange")
|
142 |
|
143 |
fig = px.imshow(cosine_sim_df, text_auto=True,
|
144 |
labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
|