peterkros commited on
Commit
b8c57cf
·
verified ·
1 Parent(s): 6f7823e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -111,13 +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.clear()
116
- examples_state.extend([
117
  [question1],
118
  [question2],
119
  [question3]
120
- ])
121
 
122
  follow_up_questions_md = "\n".join(new_follow_up_questions_formatted)
123
 
 
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