Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ def process_user_input(text, thread_id, chat_history, storage):
|
|
120 |
chat_history[-1][1] = "Your request contains some inappropriate information. We cannot proceed with it."
|
121 |
yield [chat_history, storage]
|
122 |
else:
|
123 |
-
add_message_to_openai(
|
124 |
for response in handle_events(thread_id, chat_history, storage):
|
125 |
yield response
|
126 |
|
|
|
120 |
chat_history[-1][1] = "Your request contains some inappropriate information. We cannot proceed with it."
|
121 |
yield [chat_history, storage]
|
122 |
else:
|
123 |
+
add_message_to_openai(text, thread_id)
|
124 |
for response in handle_events(thread_id, chat_history, storage):
|
125 |
yield response
|
126 |
|