peterkros commited on
Commit
80783de
·
verified ·
1 Parent(s): b8c57cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -111,12 +111,12 @@ def process_response(prompt, chat_history, token_count, examples_state):
111
  new_follow_up_questions_formatted = [q.strip() for q in new_follow_up_questions.split('\n')[:3]]
112
  question1, question2, question3 = new_follow_up_questions_formatted
113
 
114
- # Update examples state with the new follow-up questions
115
- examples_state = [
116
  [question1],
117
  [question2],
118
  [question3]
119
- ]
120
 
121
  follow_up_questions_md = "\n".join(new_follow_up_questions_formatted)
122
 
 
111
  new_follow_up_questions_formatted = [q.strip() for q in new_follow_up_questions.split('\n')[:3]]
112
  question1, question2, question3 = new_follow_up_questions_formatted
113
 
114
+ # Update examples state with the new follow-up questions
115
+ examples_state.extend([
116
  [question1],
117
  [question2],
118
  [question3]
119
+ ])
120
 
121
  follow_up_questions_md = "\n".join(new_follow_up_questions_formatted)
122