nlpblogs commited on
Commit
c568178
·
verified ·
1 Parent(s): 68b8889

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -83,7 +83,7 @@ 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 = "figure 1")
87
 
88
 
89
 
@@ -100,7 +100,7 @@ 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 = "figure 2")
104
 
105
 
106
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
@@ -154,7 +154,7 @@ 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")
158
 
159
 
160
 
@@ -171,7 +171,7 @@ 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 = "bar 4")
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
+ st.plotly_chart(fig1, key = "chart_1_shown")
87
 
88
 
89
 
 
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
  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
  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:]):