PedroC11 commited on
Commit
2f87f07
·
verified ·
1 Parent(s): 6e1a354

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +7 -2
src/streamlit_app.py CHANGED
@@ -38,8 +38,13 @@ for i, (imgA, imgB) in enumerate(image_pairs):
38
  # ---- SUBMIT ----
39
  if st.button("Submit"):
40
  st.success("Thank you! Your responses have been recorded.")
41
- st.write("Here are your selections:")
42
- st.json(results)
 
 
 
 
 
43
 
44
  # Save to file (you could also save to a database)
45
  with open("resp/responses.txt", "a") as f:
 
38
  # ---- SUBMIT ----
39
  if st.button("Submit"):
40
  st.success("Thank you! Your responses have been recorded.")
41
+ st.write("Below are your final selections. Please, copy them and send them to my email. Thanks a lot!")
42
+ s_rp = "RESULTS: "
43
+ for i in range(len(image_pairs)):
44
+ s_rp = s_rp + results[f"pair_{i+1}"] + ", "
45
+ st.write(s_rp)
46
+
47
+ # st.json(results)
48
 
49
  # Save to file (you could also save to a database)
50
  with open("resp/responses.txt", "a") as f: