Update src/streamlit_app.py
Browse files- 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.
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
#
|
| 98 |
-
st.
|
|
|
|
| 99 |
|
| 100 |
# st.json(results)
|
| 101 |
|
| 102 |
#====
|
| 103 |
current_time = datetime.datetime.now()
|
| 104 |
-
|
| 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:
|