Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,9 @@ pipeline = start_haystack()
|
|
34 |
def set_state_if_absent(key, value):
|
35 |
if key not in st.session_state:
|
36 |
st.session_state[key] = value
|
|
|
|
|
|
|
37 |
|
38 |
set_state_if_absent("question", "how much money should each player have at the beginning?")
|
39 |
set_state_if_absent("results", None)
|
|
|
34 |
def set_state_if_absent(key, value):
|
35 |
if key not in st.session_state:
|
36 |
st.session_state[key] = value
|
37 |
+
|
38 |
+
def reset_results(*args):
|
39 |
+
st.session_state.results = None
|
40 |
|
41 |
set_state_if_absent("question", "how much money should each player have at the beginning?")
|
42 |
set_state_if_absent("results", None)
|