Spaces:
Build error
Build error
Upload app.py
Browse files
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=
|
| 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"):
|