Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,19 @@ for uploaded_file in uploaded_files:
|
|
57 |
|
58 |
data = {"Text": text_data, **entity_dict}
|
59 |
st.dataframe(data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
|
62 |
vectorizer = TfidfVectorizer()
|
@@ -73,8 +86,8 @@ for uploaded_file in uploaded_files:
|
|
73 |
import plotly.express as px
|
74 |
|
75 |
fig = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Cosine similarity", y="Text", color="Productivity"),
|
76 |
-
x=['text1', '
|
77 |
-
y=['text1', '
|
78 |
st.plotly_chart(fig)
|
79 |
|
80 |
st.subheader("Cosine Similarity Scores (Job Description vs. Resumes):")
|
|
|
57 |
|
58 |
data = {"Text": text_data, **entity_dict}
|
59 |
st.dataframe(data)
|
60 |
+
|
61 |
+
|
62 |
+
if data is not None:
|
63 |
+
value_counts1 = data['label'].value_counts()
|
64 |
+
|
65 |
+
df1 = pd.DataFrame(value_counts1)
|
66 |
+
|
67 |
+
final_df = df1.reset_index().rename(columns={"index": "label"})
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
+
fig2 = px.bar(final_df, x="count", y="label", color="label", text_auto=True, title='Occurrences of predicted labels')
|
72 |
+
st.plotly_chart(fig2)
|
73 |
|
74 |
|
75 |
vectorizer = TfidfVectorizer()
|
|
|
86 |
import plotly.express as px
|
87 |
|
88 |
fig = px.imshow(cosine_sim_df, text_auto=True, labels=dict(x="Cosine similarity", y="Text", color="Productivity"),
|
89 |
+
x=['text1', 'Jon Description'],
|
90 |
+
y=['text1', 'Job Description'])
|
91 |
st.plotly_chart(fig)
|
92 |
|
93 |
st.subheader("Cosine Similarity Scores (Job Description vs. Resumes):")
|