NursNurs commited on
Commit
bcd5c3f
·
1 Parent(s): b5b2503

trynna fix the remember word -yes/no bug

Browse files
Files changed (1) hide show
  1. pages/2_Context-based_chatbot.py +3 -2
pages/2_Context-based_chatbot.py CHANGED
@@ -255,7 +255,7 @@ if st.session_state.actions_context[-1] == "result":
255
  write_bot('Does it help you remember the word?', remember=False)
256
  st.session_state.is_helpful_context['ask'] = True
257
 
258
- if st.session_state.is_helpful_context['ask']:
259
  ask_if_helped_context()
260
 
261
  if st.session_state.actions_context[-1] == 'cue':
@@ -336,7 +336,8 @@ if st.session_state.actions_context[-1] == 'cue':
336
 
337
  elif b4:
338
  write_bot(f"Here are all my guesses about your word: {st.session_state.results_context['results_context_print']}")
339
-
 
340
  elif b5:
341
  write_bot("Yay! I am happy I could be of help!")
342
  st.session_state.counter_context["word_count"] = 0
 
255
  write_bot('Does it help you remember the word?', remember=False)
256
  st.session_state.is_helpful_context['ask'] = True
257
 
258
+ if st.session_state.is_helpful_context['ask'] == True:
259
  ask_if_helped_context()
260
 
261
  if st.session_state.actions_context[-1] == 'cue':
 
336
 
337
  elif b4:
338
  write_bot(f"Here are all my guesses about your word: {st.session_state.results_context['results_context_print']}")
339
+ st.session_state.is_helpful_context['ask'] = True
340
+
341
  elif b5:
342
  write_bot("Yay! I am happy I could be of help!")
343
  st.session_state.counter_context["word_count"] = 0