Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -116,13 +116,13 @@ def write_bot(input, remember=True, blink=True):
|
|
116 |
st.session_state.messages.append({'role': 'assistant', 'content': full_response})
|
117 |
|
118 |
def ask_if_helped():
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
st.session_state.is_helpful['ask'] = False
|
126 |
|
127 |
if st.session_state.actions[-1] == "result":
|
128 |
a1 = st.button('Results', key=10)
|
|
|
116 |
st.session_state.messages.append({'role': 'assistant', 'content': full_response})
|
117 |
|
118 |
def ask_if_helped():
|
119 |
+
y = st.button('Yes!', key=60)
|
120 |
+
n = st.button('No...', key=61)
|
121 |
+
if y:
|
122 |
+
write_bot("I am happy to help!")
|
123 |
+
elif n:
|
124 |
+
st.session_state.actions.append('cue')
|
125 |
+
# st.session_state.is_helpful['ask'] = False
|
126 |
|
127 |
if st.session_state.actions[-1] == "result":
|
128 |
a1 = st.button('Results', key=10)
|