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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -83,7 +83,8 @@ for uploaded_file in uploaded_files:
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
- st.plotly_chart(fig1, key = "chart_1_shown")
 
87
 
88
 
89
 
@@ -100,7 +101,8 @@ for uploaded_file in uploaded_files:
100
  fig2 = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
101
  x=['Resume 1', 'Jon Description'],
102
  y=['Resume 1', 'Job Description'])
103
- st.plotly_chart(fig2, key = "chart_2_shown")
 
104
 
105
 
106
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
@@ -154,7 +156,8 @@ for uploaded_file in uploaded_files:
154
  fig3 = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
155
  values='score', color='label')
156
  fig3.update_layout(margin = dict(t=50, l=25, r=25, b=25))
157
- st.plotly_chart(fig3, key = "chart_3_shown")
 
158
 
159
 
160
 
@@ -171,7 +174,8 @@ for uploaded_file in uploaded_files:
171
  fig4 = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
172
  x=['Resume 2', 'Jon Description'],
173
  y=['Resume 2', 'Job Description'])
174
- st.plotly_chart(fig4, key = "chart_4_shown")
 
175
 
176
 
177
  for i, similarity_score in enumerate(cosine_sim_matrix[0][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
 
 
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:]):
 
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
 
 
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:]):