NursNurs commited on
Commit
2cf1172
·
1 Parent(s): 4fa024f

trynna fix the remember word -yes/no bug

Browse files
Files changed (1) hide show
  1. pages/2_Context-based_chatbot.py +5 -5
pages/2_Context-based_chatbot.py CHANGED
@@ -238,7 +238,7 @@ if prompt_context:
238
  if st.session_state.actions_context[-1] == "result":
239
  col1, col2, col3, col4, col5 = st.columns(5)
240
  with col1:
241
- a1 = st.button('results_context', key=10)
242
  with col2:
243
  a2 = st.button('Cue', key=11)
244
  if a1:
@@ -248,12 +248,12 @@ if st.session_state.actions_context[-1] == "result":
248
  write_bot('Does it help you remember the word?', remember=False)
249
  st.session_state.is_helpful_context['ask'] = True
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
257
 
258
  if st.session_state.is_helpful_context['ask']:
259
  ask_if_helped_context()
 
238
  if st.session_state.actions_context[-1] == "result":
239
  col1, col2, col3, col4, col5 = st.columns(5)
240
  with col1:
241
+ a1 = st.button('Results', key=10)
242
  with col2:
243
  a2 = st.button('Cue', key=11)
244
  if a1:
 
248
  write_bot('Does it help you remember the word?', remember=False)
249
  st.session_state.is_helpful_context['ask'] = True
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
257
 
258
  if st.session_state.is_helpful_context['ask']:
259
  ask_if_helped_context()