NursNurs commited on
Commit
2c0d846
1 Parent(s): d953687

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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
- 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)
 
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)