nlpblogs commited on
Commit
80c8103
·
verified ·
1 Parent(s): 94b205a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,7 +51,7 @@ job = pd.Series(st.text_area("Paste the job description and then press Ctrl + En
51
  if 'applicant_data' not in st.session_state:
52
  st.session_state['applicant_data'] = {}
53
 
54
- max_attempts = 50
55
 
56
  for i in range(1, 51): # Looping for 2 applicants
57
  st.subheader(f"Applicant {i} Resume", divider="green")
@@ -144,7 +144,7 @@ if st.session_state['upload_count'] < max_attempts:
144
  y=['Resume', 'Job Description'])
145
  st.plotly_chart(fig, key="figure 2")
146
  else:
147
- st.warning(f"You have reached the maximum upload attempts ({max_attempts}).")
148
  if 'upload_count' in st.session_state and st.session_state['upload_count'] > 0:
149
  st.info(f"Files uploaded {st.session_state['upload_count']} time(s).")
150
 
 
51
  if 'applicant_data' not in st.session_state:
52
  st.session_state['applicant_data'] = {}
53
 
54
+ max_attempts = 1
55
 
56
  for i in range(1, 51): # Looping for 2 applicants
57
  st.subheader(f"Applicant {i} Resume", divider="green")
 
144
  y=['Resume', 'Job Description'])
145
  st.plotly_chart(fig, key="figure 2")
146
  else:
147
+ st.warning(f"Maximum upload attempts has been reached ({max_attempts}).")
148
  if 'upload_count' in st.session_state and st.session_state['upload_count'] > 0:
149
  st.info(f"Files uploaded {st.session_state['upload_count']} time(s).")
150