Timjo88 commited on
Commit
4fc81f2
·
1 Parent(s): 8d3589e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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)