Update app.py
Browse files
app.py
CHANGED
@@ -243,7 +243,7 @@ def create_ui() -> gr.Blocks:
|
|
243 |
# Convert all messages *before* the last user message into tuples for the API
|
244 |
tuple_history_for_api = convert_messages_to_tuples(history[:-1])
|
245 |
|
246 |
-
response = chat_with_user(user_message, tuple_history_for_api
|
247 |
history.append({"role": "assistant", "content": response})
|
248 |
return history
|
249 |
|
|
|
243 |
# Convert all messages *before* the last user message into tuples for the API
|
244 |
tuple_history_for_api = convert_messages_to_tuples(history[:-1])
|
245 |
|
246 |
+
response = chat_with_user(user_message, tuple_history_for_api)
|
247 |
history.append({"role": "assistant", "content": response})
|
248 |
return history
|
249 |
|