Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,6 @@ with st.sidebar:
|
|
39 |
|
40 |
''')
|
41 |
|
42 |
-
|
43 |
st.subheader("Candidate Profile 1", divider = "green")
|
44 |
|
45 |
txt = st.text_area("Job description", key = "text 1")
|
@@ -49,7 +48,7 @@ job = pd.Series(txt, name="Text")
|
|
49 |
if 'upload_count' not in st.session_state:
|
50 |
st.session_state['upload_count'] = 0
|
51 |
|
52 |
-
max_attempts =
|
53 |
|
54 |
if st.session_state['upload_count'] < max_attempts:
|
55 |
uploaded_files = st.file_uploader(
|
@@ -94,7 +93,6 @@ if st.session_state['upload_count'] < max_attempts:
|
|
94 |
for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
|
95 |
st.write(f"Similarity with Candidate Profile {i + 1}: {similarity_score:.4f}")
|
96 |
|
97 |
-
|
98 |
else:
|
99 |
st.warning(f"You have reached the maximum upload attempts ({max_attempts})")
|
100 |
|
@@ -103,6 +101,8 @@ if 'upload_count' in st.session_state and st.session_state['upload_count'] > 0:
|
|
103 |
|
104 |
|
105 |
|
|
|
|
|
106 |
|
107 |
|
108 |
|
|
|
39 |
|
40 |
''')
|
41 |
|
|
|
42 |
st.subheader("Candidate Profile 1", divider = "green")
|
43 |
|
44 |
txt = st.text_area("Job description", key = "text 1")
|
|
|
48 |
if 'upload_count' not in st.session_state:
|
49 |
st.session_state['upload_count'] = 0
|
50 |
|
51 |
+
max_attempts = 2
|
52 |
|
53 |
if st.session_state['upload_count'] < max_attempts:
|
54 |
uploaded_files = st.file_uploader(
|
|
|
93 |
for i, similarity_score in enumerate(cosine_sim_matrix[0][1:]):
|
94 |
st.write(f"Similarity with Candidate Profile {i + 1}: {similarity_score:.4f}")
|
95 |
|
|
|
96 |
else:
|
97 |
st.warning(f"You have reached the maximum upload attempts ({max_attempts})")
|
98 |
|
|
|
101 |
|
102 |
|
103 |
|
104 |
+
|
105 |
+
|
106 |
|
107 |
|
108 |
|