nlpblogs commited on
Commit
1b92119
·
verified ·
1 Parent(s): 591c7c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -79,7 +79,7 @@ for uploaded_file in uploaded_files:
79
  fig1 = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
80
  values='score', color='label')
81
  fig1.update_layout(margin = dict(t=50, l=25, r=25, b=25))
82
- st.plotly_chart(fig1, key = "figure 1")
83
 
84
 
85
 
@@ -96,12 +96,12 @@ for uploaded_file in uploaded_files:
96
  fig2 = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
97
  x=['Resume 1', 'Jon Description'],
98
  y=['Resume 1', 'Job Description'])
99
- st.plotly_chart(fig2, key = "figure 2")
100
 
101
 
102
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
103
  st.write(f"Similarity of job description with candidate profile 1. {i + 1}: {similarity_score:.4f}")
104
- st.write("A score closer to 1 (0.80, 0.90) means higher similarity between candidate profile 1 and job description. A score closer to 0 (0.20, 0.30) means lower similarity between candidate profile 1 and job description.")
105
 
106
  else:
107
  st.warning(f"You have reached the maximum URL attempts ({max_attempts}).")
@@ -151,7 +151,7 @@ for uploaded_file in uploaded_files:
151
  fig3 = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
152
  values='score', color='label')
153
  fig3.update_layout(margin = dict(t=50, l=25, r=25, b=25))
154
- st.plotly_chart(fig3, key = "chart 3")
155
 
156
 
157
 
@@ -168,7 +168,7 @@ for uploaded_file in uploaded_files:
168
  fig4 = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
169
  x=['Resume 1', 'Jon Description'],
170
  y=['Resume 1', 'Job Description'])
171
- st.plotly_chart(fig4, key = "chart 4")
172
 
173
 
174
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
 
79
  fig1 = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
80
  values='score', color='label')
81
  fig1.update_layout(margin = dict(t=50, l=25, r=25, b=25))
82
+ st.plotly_chart(fig1)
83
 
84
 
85
 
 
96
  fig2 = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
97
  x=['Resume 1', 'Jon Description'],
98
  y=['Resume 1', 'Job Description'])
99
+ st.plotly_chart(fig2)
100
 
101
 
102
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
103
  st.write(f"Similarity of job description with candidate profile 1. {i + 1}: {similarity_score:.4f}")
104
+ st.info"A score closer to 1 (0.80, 0.90) means higher similarity between candidate profile 1 and job description. A score closer to 0 (0.20, 0.30) means lower similarity between candidate profile 1 and job description.")
105
 
106
  else:
107
  st.warning(f"You have reached the maximum URL attempts ({max_attempts}).")
 
151
  fig3 = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
152
  values='score', color='label')
153
  fig3.update_layout(margin = dict(t=50, l=25, r=25, b=25))
154
+ st.plotly_chart(fig3)
155
 
156
 
157
 
 
168
  fig4 = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Keyword similarity", y="Resumes", color="Productivity"),
169
  x=['Resume 1', 'Jon Description'],
170
  y=['Resume 1', 'Job Description'])
171
+ st.plotly_chart(fig4)
172
 
173
 
174
  for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):