Spaces:
Build error
Build error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -137,7 +137,7 @@ if st.session_state.page == "evaluation":
|
|
| 137 |
if "start_time" not in st.session_state or st.session_state.page_changed:
|
| 138 |
st.session_state.start_time = time.time()
|
| 139 |
st.session_state.page_changed = False
|
| 140 |
-
|
| 141 |
|
| 142 |
# If all pairs have been evaluated, display a message and save the results
|
| 143 |
if st.session_state.current_index+1 > NUM_PAIRS:
|
|
@@ -187,7 +187,7 @@ if st.session_state.page == "evaluation":
|
|
| 187 |
st.stop()
|
| 188 |
|
| 189 |
|
| 190 |
-
|
| 191 |
st.write(f"Image Pair {st.session_state.current_index+1} of {NUM_PAIRS}")
|
| 192 |
|
| 193 |
# Charger et mélanger la paire pour l'index courant
|
|
|
|
| 137 |
if "start_time" not in st.session_state or st.session_state.page_changed:
|
| 138 |
st.session_state.start_time = time.time()
|
| 139 |
st.session_state.page_changed = False
|
| 140 |
+
|
| 141 |
|
| 142 |
# If all pairs have been evaluated, display a message and save the results
|
| 143 |
if st.session_state.current_index+1 > NUM_PAIRS:
|
|
|
|
| 187 |
st.stop()
|
| 188 |
|
| 189 |
|
| 190 |
+
st_autorefresh(interval=1000, key=f"timer_{st.session_state.current_index}")
|
| 191 |
st.write(f"Image Pair {st.session_state.current_index+1} of {NUM_PAIRS}")
|
| 192 |
|
| 193 |
# Charger et mélanger la paire pour l'index courant
|