Spaces:
Sleeping
Sleeping
count state change
Browse files
app.py
CHANGED
@@ -367,19 +367,26 @@ if st.session_state.actions[-1] == 'cue':
|
|
367 |
|
368 |
elif b5:
|
369 |
write_bot("Yay! I am happy I could be of help!")
|
370 |
-
|
371 |
-
|
372 |
-
|
|
|
|
|
373 |
guessed = True
|
374 |
|
375 |
break
|
376 |
|
377 |
elif b6:
|
378 |
write_bot("I am sorry I couldn't help you this time. See you soon!")
|
|
|
|
|
379 |
st.session_state.actions.append('cue')
|
380 |
|
381 |
if new:
|
382 |
write_bot("Please describe your word!")
|
|
|
|
|
|
|
383 |
break
|
384 |
|
385 |
# elif prompt == 'results':
|
|
|
367 |
|
368 |
elif b5:
|
369 |
write_bot("Yay! I am happy I could be of help!")
|
370 |
+
st.session_state.counters["word_count"] = 0
|
371 |
+
st.session_state.counters["letter_count"] = 0
|
372 |
+
#new = st.button('Play again', key=63)
|
373 |
+
#if new:
|
374 |
+
#write_bot("Please describe your word!")
|
375 |
guessed = True
|
376 |
|
377 |
break
|
378 |
|
379 |
elif b6:
|
380 |
write_bot("I am sorry I couldn't help you this time. See you soon!")
|
381 |
+
st.session_state.counters["word_count"] = 0
|
382 |
+
st.session_state.counters["letter_count"] = 0
|
383 |
st.session_state.actions.append('cue')
|
384 |
|
385 |
if new:
|
386 |
write_bot("Please describe your word!")
|
387 |
+
st.session_state.counters["word_count"] = 0
|
388 |
+
st.session_state.counters["letter_count"] = 0
|
389 |
+
|
390 |
break
|
391 |
|
392 |
# elif prompt == 'results':
|