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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -41,11 +41,13 @@ with st.sidebar:
41
 
42
 
43
 
44
- st.subheader ("Candidate Profile 1", divider = "green")
45
 
46
  txt = st.text_area("Paste the job description and then press Ctrl + Enter", key = "text 1")
47
  job = pd.Series(txt, name="Text")
48
 
 
 
49
 
50
  if 'upload_count' not in st.session_state:
51
  st.session_state['upload_count'] = 0
@@ -152,7 +154,7 @@ for uploaded_file in uploaded_files:
152
  fig3 = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
153
  values='score', color='label')
154
  fig3.update_layout(margin = dict(t=50, l=25, r=25, b=25))
155
- st.plotly_chart(fig3, key = "figure 3")
156
 
157
 
158
 
@@ -169,7 +171,7 @@ for uploaded_file in uploaded_files:
169
  fig4 = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
170
  x=['Resume 2', 'Jon Description'],
171
  y=['Resume 2', 'Job Description'])
172
- st.plotly_chart(fig4, key = "figure 4")
173
 
174
 
175
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
 
41
 
42
 
43
 
44
+ st.subheader ("Job Description", divider = "orange")
45
 
46
  txt = st.text_area("Paste the job description and then press Ctrl + Enter", key = "text 1")
47
  job = pd.Series(txt, name="Text")
48
 
49
+ st.subheader("Candidate Profile 1", divider = "red")
50
+
51
 
52
  if 'upload_count' not in st.session_state:
53
  st.session_state['upload_count'] = 0
 
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
  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:]):