Spaces:
Build error
Build error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,8 @@ if "list_pair_ID" not in st.session_state:
|
|
| 87 |
st.session_state.list_pair_ID = []
|
| 88 |
if "results_tot" not in st.session_state:
|
| 89 |
st.session_state.results_tot = 0
|
| 90 |
-
|
|
|
|
| 91 |
|
| 92 |
# -------------------------
|
| 93 |
# Intro page
|
|
@@ -185,13 +186,14 @@ if st.session_state.page == "evaluation":
|
|
| 185 |
",".join(map(str, correct_guess)),
|
| 186 |
]
|
| 187 |
sh.append_row(row)
|
|
|
|
| 188 |
|
| 189 |
|
| 190 |
# if st.button("See detailed results"):
|
| 191 |
# st.session_state.page = "detailed_results"
|
| 192 |
# st.rerun()
|
| 193 |
|
| 194 |
-
if st.session_state.
|
| 195 |
if st.button("See detailed results"):
|
| 196 |
st.session_state.page = "detailed_results"
|
| 197 |
st.rerun()
|
|
|
|
| 87 |
st.session_state.list_pair_ID = []
|
| 88 |
if "results_tot" not in st.session_state:
|
| 89 |
st.session_state.results_tot = 0
|
| 90 |
+
if "submitted" not in st.session_state:
|
| 91 |
+
st.session_state.submitted = False
|
| 92 |
|
| 93 |
# -------------------------
|
| 94 |
# Intro page
|
|
|
|
| 186 |
",".join(map(str, correct_guess)),
|
| 187 |
]
|
| 188 |
sh.append_row(row)
|
| 189 |
+
st.session_state.submitted = True
|
| 190 |
|
| 191 |
|
| 192 |
# if st.button("See detailed results"):
|
| 193 |
# st.session_state.page = "detailed_results"
|
| 194 |
# st.rerun()
|
| 195 |
|
| 196 |
+
if st.session_state.submitted == True:
|
| 197 |
if st.button("See detailed results"):
|
| 198 |
st.session_state.page = "detailed_results"
|
| 199 |
st.rerun()
|