Update app.py
Browse files
app.py
CHANGED
@@ -53,9 +53,9 @@ st.subheader("Candidate Profile 1", divider = "red")
|
|
53 |
if 'upload_count_cand1' not in st.session_state:
|
54 |
st.session_state['upload_count_cand1'] = 0
|
55 |
|
56 |
-
|
57 |
|
58 |
-
if st.session_state['upload_count_cand1'] <
|
59 |
uploaded_files = st.file_uploader(
|
60 |
"Upload your resume", accept_multiple_files=True, type="pdf", key="candidate 1"
|
61 |
)
|
@@ -111,7 +111,7 @@ for uploaded_file in uploaded_files:
|
|
111 |
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.")
|
112 |
|
113 |
else:
|
114 |
-
st.warning(f"You have reached the maximum URL attempts ({
|
115 |
if 'upload_count' in st.session_state and st.session_state['upload_count'] > 0:
|
116 |
st.info(f"Files uploaded {st.session_state['upload_count_cand1']} time(s).")
|
117 |
|
@@ -128,7 +128,7 @@ if 'upload_count_cand2' not in st.session_state:
|
|
128 |
|
129 |
max_attempts_cand2 = 3
|
130 |
|
131 |
-
if st.session_state['upload_count_cand2'] <
|
132 |
uploaded_files = st.file_uploader(
|
133 |
"Upload your resume in .pdf format", accept_multiple_files=True, type="pdf", key="candidate 2"
|
134 |
)
|
@@ -183,10 +183,14 @@ for uploaded_file in uploaded_files:
|
|
183 |
st.write(f"Similarity with Candidate Profile. A score closer to 1 means higher similarity. {i + 1}: {similarity_score:.4f}")
|
184 |
|
185 |
else:
|
186 |
-
st.warning(f"You have reached the maximum URL attempts ({
|
187 |
if 'upload_count' in st.session_state and st.session_state['upload_count'] > 0:
|
188 |
st.info(f"Files uploaded {st.session_state['upload_count_cand2']} time(s).")
|
189 |
|
|
|
|
|
|
|
|
|
190 |
|
191 |
|
192 |
|
|
|
53 |
if 'upload_count_cand1' not in st.session_state:
|
54 |
st.session_state['upload_count_cand1'] = 0
|
55 |
|
56 |
+
max_attempts_cand1 = 1
|
57 |
|
58 |
+
if st.session_state['upload_count_cand1'] < max_attempts_cand1:
|
59 |
uploaded_files = st.file_uploader(
|
60 |
"Upload your resume", accept_multiple_files=True, type="pdf", key="candidate 1"
|
61 |
)
|
|
|
111 |
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.")
|
112 |
|
113 |
else:
|
114 |
+
st.warning(f"You have reached the maximum URL attempts ({max_attempts_cand1}).")
|
115 |
if 'upload_count' in st.session_state and st.session_state['upload_count'] > 0:
|
116 |
st.info(f"Files uploaded {st.session_state['upload_count_cand1']} time(s).")
|
117 |
|
|
|
128 |
|
129 |
max_attempts_cand2 = 3
|
130 |
|
131 |
+
if st.session_state['upload_count_cand2'] < max_attempts_cand2:
|
132 |
uploaded_files = st.file_uploader(
|
133 |
"Upload your resume in .pdf format", accept_multiple_files=True, type="pdf", key="candidate 2"
|
134 |
)
|
|
|
183 |
st.write(f"Similarity with Candidate Profile. A score closer to 1 means higher similarity. {i + 1}: {similarity_score:.4f}")
|
184 |
|
185 |
else:
|
186 |
+
st.warning(f"You have reached the maximum URL attempts ({max_attempts_cand2}).")
|
187 |
if 'upload_count' in st.session_state and st.session_state['upload_count'] > 0:
|
188 |
st.info(f"Files uploaded {st.session_state['upload_count_cand2']} time(s).")
|
189 |
|
190 |
+
# fix else: warning
|
191 |
+
# fix, keys
|
192 |
+
# st.title
|
193 |
+
|
194 |
|
195 |
|
196 |
|