Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
115 |
-
examples_state
|
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 |
|