Spaces:
Sleeping
Sleeping
add play agin button
Browse files
app.py
CHANGED
@@ -140,6 +140,9 @@ def ask_if_helped():
|
|
140 |
if y:
|
141 |
write_bot("I am happy to help!")
|
142 |
st.session_state.is_helpful['ask'] = False
|
|
|
|
|
|
|
143 |
elif n:
|
144 |
st.session_state.actions.append('cue')
|
145 |
st.session_state.is_helpful['ask'] = False
|
|
|
140 |
if y:
|
141 |
write_bot("I am happy to help!")
|
142 |
st.session_state.is_helpful['ask'] = False
|
143 |
+
again = st.button('Play again')
|
144 |
+
if again:
|
145 |
+
write_bot("Please describe your word!")
|
146 |
elif n:
|
147 |
st.session_state.actions.append('cue')
|
148 |
st.session_state.is_helpful['ask'] = False
|