CarolineM5 commited on
Commit
6d3398e
·
verified ·
1 Parent(s): c95600a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -106,7 +106,7 @@ if st.session_state.page == "evaluation":
106
  # st.write(f"User: **{st.session_state.user_name}**")
107
 
108
  # If all pairs have been evaluated, display a message and save the results
109
- if st.session_state.current_index > NUM_PAIRS:
110
  st.success("Thank you for completing the evaluation!")
111
  # results_df = pd.DataFrame(st.session_state.results)
112
  # results_df.to_csv(RESULTS_FILE, index=False)
@@ -139,7 +139,7 @@ if st.session_state.page == "evaluation":
139
  with col2:
140
  st.image(img2, caption="Image 2", use_container_width =True)
141
 
142
- choice = st.radio("", options=["1", "2"], index=0, horizontal = True)
143
 
144
 
145
  if st.button("Next"):
 
106
  # st.write(f"User: **{st.session_state.user_name}**")
107
 
108
  # If all pairs have been evaluated, display a message and save the results
109
+ if st.session_state.current_index+1 > NUM_PAIRS:
110
  st.success("Thank you for completing the evaluation!")
111
  # results_df = pd.DataFrame(st.session_state.results)
112
  # results_df.to_csv(RESULTS_FILE, index=False)
 
139
  with col2:
140
  st.image(img2, caption="Image 2", use_container_width =True)
141
 
142
+ choice = st.radio("Select the **real** image: ", options=["1", "2"], index=None, horizontal = True)
143
 
144
 
145
  if st.button("Next"):