PedroC11 commited on
Commit
6d4ddbe
·
verified ·
1 Parent(s): bd5385b

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +12 -11
src/streamlit_app.py CHANGED
@@ -86,22 +86,23 @@ for i, (imgA, imgB) in enumerate(image_pairs):
86
  # ---- SUBMIT ----
87
  if st.button("Submit"):
88
  #st.success("Thank you! Your responses have been recorded.")
89
- st.write("Thank you! Your selection has been recorded.")
90
- st.write("Your final selection is in the green box below. Please, copy them and send them to my email. Thanks a lot!")
91
- s_rp = "SELECTION: "
92
- for i in range(len(image_pairs)):
93
- if i == (len(image_pairs) - 1):
94
- s_rp = s_rp + results[f"pair_{i+1}"] + "."
95
- else:
96
- s_rp = s_rp + results[f"pair_{i+1}"] + ", "
97
- #st.badge(s_rp, width = "stretch")
98
- st.success(s_rp)
 
99
 
100
  # st.json(results)
101
 
102
  #====
103
  current_time = datetime.datetime.now()
104
- result["day"] = str(current_time.day)
105
  results["time"] = str(current_time.hour) + ":" + str(current_time.minute) + ":" + str(current_time.second)
106
 
107
  with scheduler.lock:
 
86
  # ---- SUBMIT ----
87
  if st.button("Submit"):
88
  #st.success("Thank you! Your responses have been recorded.")
89
+ #st.write("Thank you! Your selection has been recorded.")
90
+ st.success("Thank you! Your selection has been recorded.")
91
+ #st.write("Your final selection is in the green box below. Please, copy them and send them to my email. Thanks a lot!")
92
+ #s_rp = "SELECTION: "
93
+ #for i in range(len(image_pairs)):
94
+ # if i == (len(image_pairs) - 1):
95
+ # s_rp = s_rp + results[f"pair_{i+1}"] + "."
96
+ # else:
97
+ # s_rp = s_rp + results[f"pair_{i+1}"] + ", "
98
+ ##st.badge(s_rp, width = "stretch")
99
+ #st.success(s_rp)
100
 
101
  # st.json(results)
102
 
103
  #====
104
  current_time = datetime.datetime.now()
105
+ results["day"] = str(current_time.day)
106
  results["time"] = str(current_time.hour) + ":" + str(current_time.minute) + ":" + str(current_time.second)
107
 
108
  with scheduler.lock: