osbm commited on
Commit
78b3477
·
1 Parent(s): 63005e4

move success message for vote submission above spinner for better user feedback

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -176,11 +176,7 @@ else: # logged in
176
  muscle_level=muscle_level,
177
  uuid_num=uuid_num,
178
  )
 
179
  with st.spinner("Wait for the upload of the vote", show_time=True):
180
  time.sleep(1)
181
  st.rerun()
182
-
183
- st.success(f"Vote submitted uuid: {uuid_num} (in case you want to undo the vote)")
184
- image_path = get_one_from_queue(username)
185
- st.write(f"Next image is {image_path}")
186
- # push the data to the database
 
176
  muscle_level=muscle_level,
177
  uuid_num=uuid_num,
178
  )
179
+ st.success(f"Vote submitted uuid: {uuid_num} (in case you want to undo the vote)")
180
  with st.spinner("Wait for the upload of the vote", show_time=True):
181
  time.sleep(1)
182
  st.rerun()