Spaces:
Sleeping
Sleeping
trynna fix the remember word -yes/no bug again
Browse files
pages/2_Context-based_chatbot.py
CHANGED
@@ -102,14 +102,14 @@ def ask_if_helped_context():
|
|
102 |
write_bot("I am happy to help!")
|
103 |
again = st.button('Play again')
|
104 |
if again:
|
105 |
-
write_bot("Please
|
106 |
st.session_state.is_helpful_context['ask'] = False
|
107 |
elif n:
|
108 |
st.session_state.actions_context.append('cue')
|
109 |
st.session_state.is_helpful_context['ask'] = False
|
110 |
#cue_generation()
|
111 |
elif new:
|
112 |
-
write_bot("Please
|
113 |
st.session_state.is_helpful_context['ask'] = False
|
114 |
|
115 |
## removed: if st.session_state.actions_context[-1] == "result":
|
@@ -355,7 +355,6 @@ if st.session_state.actions_context[-1] == 'cue':
|
|
355 |
st.session_state.counter_context["letter_count"] = 0
|
356 |
st.session_state.actions_context.append('cue')
|
357 |
|
358 |
-
ask_if_helped_context()
|
359 |
|
360 |
if new:
|
361 |
write_bot("Please give a sentence using a <mask> instead of the word you have in mind!")
|
|
|
102 |
write_bot("I am happy to help!")
|
103 |
again = st.button('Play again')
|
104 |
if again:
|
105 |
+
write_bot("Please give a sentence using a <mask> instead of the word you have in mind!")
|
106 |
st.session_state.is_helpful_context['ask'] = False
|
107 |
elif n:
|
108 |
st.session_state.actions_context.append('cue')
|
109 |
st.session_state.is_helpful_context['ask'] = False
|
110 |
#cue_generation()
|
111 |
elif new:
|
112 |
+
write_bot("Please give a sentence using a <mask> instead of the word you have in mind!")
|
113 |
st.session_state.is_helpful_context['ask'] = False
|
114 |
|
115 |
## removed: if st.session_state.actions_context[-1] == "result":
|
|
|
355 |
st.session_state.counter_context["letter_count"] = 0
|
356 |
st.session_state.actions_context.append('cue')
|
357 |
|
|
|
358 |
|
359 |
if new:
|
360 |
write_bot("Please give a sentence using a <mask> instead of the word you have in mind!")
|