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

trynna fix the remember word -yes/no bug

Browse files
Files changed (1) hide show
  1. pages/2_Context-based_chatbot.py +3 -3
pages/2_Context-based_chatbot.py CHANGED
@@ -250,7 +250,7 @@ if st.session_state.actions_context[-1] == "result":
250
  elif a2:
251
  write_bot(f'The first letter is {st.session_state.results_context["results_context"][0][0]}.')
252
  time.sleep(1)
253
- st.session_state.actions_context.append('cue')
254
  #cue_generation()
255
  write_bot('Does it help you remember the word?', remember=False)
256
  st.session_state.is_helpful_context['ask'] = True
@@ -344,7 +344,7 @@ if st.session_state.actions_context[-1] == 'cue':
344
  st.session_state.counter_context["letter_count"] = 0
345
  new = st.button('Play again', key=63)
346
  if new:
347
- write_bot("Please describe your word!")
348
  guessed = True
349
 
350
  break
@@ -356,7 +356,7 @@ if st.session_state.actions_context[-1] == 'cue':
356
  st.session_state.actions_context.append('cue')
357
 
358
  if new:
359
- write_bot("Please describe your word!")
360
  st.session_state.counter_context["word_count"] = 0
361
  st.session_state.counter_context["letter_count"] = 0
362
 
 
250
  elif a2:
251
  write_bot(f'The first letter is {st.session_state.results_context["results_context"][0][0]}.')
252
  time.sleep(1)
253
+ # st.session_state.actions_context.append('cue')
254
  #cue_generation()
255
  write_bot('Does it help you remember the word?', remember=False)
256
  st.session_state.is_helpful_context['ask'] = True
 
344
  st.session_state.counter_context["letter_count"] = 0
345
  new = st.button('Play again', key=63)
346
  if new:
347
+ write_bot("Please give a sentence using a <mask> instead of the word you have in mind!")
348
  guessed = True
349
 
350
  break
 
356
  st.session_state.actions_context.append('cue')
357
 
358
  if new:
359
+ write_bot("Please give a sentence using a <mask> instead of the word you have in mind!")
360
  st.session_state.counter_context["word_count"] = 0
361
  st.session_state.counter_context["letter_count"] = 0
362