nlpblogs commited on
Commit
d9d1a47
·
verified ·
1 Parent(s): 0b00fe2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -80,11 +80,11 @@ for uploaded_file in uploaded_files:
80
 
81
 
82
  st.subheader("Profile of candidate 1")
83
- fig1 = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
84
  values='score', color='label')
85
- fig1.update_layout(margin = dict(t=50, l=25, r=25, b=25))
86
- a = st.plotly_chart(fig1, key = "tv")
87
- a
88
 
89
 
90
 
@@ -98,11 +98,11 @@ for uploaded_file in uploaded_files:
98
 
99
 
100
  st.subheader("Measuring similarity between keywords of candidate profile 1 and job description")
101
- fig2 = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
102
  x=['Resume 1', 'Jon Description'],
103
  y=['Resume 1', 'Job Description'])
104
- b = st.plotly_chart(fig2, key = "bar")
105
- b
106
 
107
 
108
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
@@ -153,11 +153,11 @@ for uploaded_file in uploaded_files:
153
 
154
 
155
 
156
- fig3 = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
157
  values='score', color='label')
158
- fig3.update_layout(margin = dict(t=50, l=25, r=25, b=25))
159
- c = st.plotly_chart(fig3, key = "iris")
160
- c
161
 
162
 
163
 
@@ -171,11 +171,11 @@ for uploaded_file in uploaded_files:
171
 
172
 
173
 
174
- fig4 = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
175
  x=['Resume 2', 'Jon Description'],
176
  y=['Resume 2', 'Job Description'])
177
- d = st.plotly_chart(fig4, key = "radio")
178
- d
179
 
180
 
181
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
 
80
 
81
 
82
  st.subheader("Profile of candidate 1")
83
+ fig = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
84
  values='score', color='label')
85
+ fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
86
+ st.plotly_chart(fig, key = "tv")
87
+
88
 
89
 
90
 
 
98
 
99
 
100
  st.subheader("Measuring similarity between keywords of candidate profile 1 and job description")
101
+ fig = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
102
  x=['Resume 1', 'Jon Description'],
103
  y=['Resume 1', 'Job Description'])
104
+ st.plotly_chart(fig, key = "bar")
105
+
106
 
107
 
108
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
 
153
 
154
 
155
 
156
+ fig = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
157
  values='score', color='label')
158
+ fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
159
+ st.plotly_chart(fig, key = "iris")
160
+
161
 
162
 
163
 
 
171
 
172
 
173
 
174
+ fig = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
175
  x=['Resume 2', 'Jon Description'],
176
  y=['Resume 2', 'Job Description'])
177
+ st.plotly_chart(fig, key = "radio")
178
+
179
 
180
 
181
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):