osbm commited on
Commit
d4ec28a
·
1 Parent(s): 0468b1a
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -120,6 +120,7 @@ def update_vote(
120
 
121
  if 'loggedin' not in st.session_state:
122
  st.session_state['loggedin'] = 'false'
 
123
 
124
  with st.form("login"):
125
  username = st.selectbox("Select voter", voters)
@@ -174,6 +175,7 @@ if submitted or st.session_state['loggedin'] == 'true':
174
  )
175
  with st.spinner("Wait for the upload of the vote", show_time=True):
176
  time.sleep(2)
 
177
 
178
  st.success(f"Vote submitted uuid: {uuid_num} (in case you want to undo the vote)")
179
  image_path = get_one_from_queue(username)
 
120
 
121
  if 'loggedin' not in st.session_state:
122
  st.session_state['loggedin'] = 'false'
123
+ # st.session_state["vote-osman-image-path"] = "None"
124
 
125
  with st.form("login"):
126
  username = st.selectbox("Select voter", voters)
 
175
  )
176
  with st.spinner("Wait for the upload of the vote", show_time=True):
177
  time.sleep(2)
178
+ st.rerun()
179
 
180
  st.success(f"Vote submitted uuid: {uuid_num} (in case you want to undo the vote)")
181
  image_path = get_one_from_queue(username)