osbm commited on
Commit
0468b1a
·
1 Parent(s): bd62a52
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -172,10 +172,10 @@ if submitted or st.session_state['loggedin'] == 'true':
172
  muscle_level=muscle_level,
173
  uuid_num=uuid_num,
174
  )
175
- st.write(f"Vote submitted uuid: {uuid_num} (in case you want to undo the vote)")
 
 
 
176
  image_path = get_one_from_queue(username)
177
  st.write(f"Next image is {image_path}")
178
- # push the data to the database
179
-
180
- st.write("Outside the form")
181
-
 
172
  muscle_level=muscle_level,
173
  uuid_num=uuid_num,
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)
180
  st.write(f"Next image is {image_path}")
181
+ # push the data to the database