Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -940,11 +940,11 @@ def respond_and_update(message, history):
|
|
| 940 |
return history, ""
|
| 941 |
|
| 942 |
# Add user message to history
|
| 943 |
-
history.append({"role": "user", "content": message})
|
| 944 |
yield history, ""
|
| 945 |
|
| 946 |
# Start with empty assistant message
|
| 947 |
-
history.append({"role": "
|
| 948 |
|
| 949 |
# Stream the response
|
| 950 |
for partial_response in chat_response(message):
|
|
|
|
| 940 |
return history, ""
|
| 941 |
|
| 942 |
# Add user message to history
|
| 943 |
+
history.append({"role": "user", "content": message, "metadata": {}})
|
| 944 |
yield history, ""
|
| 945 |
|
| 946 |
# Start with empty assistant message
|
| 947 |
+
history.append({"role": "user", "content": message, "metadata": {}})
|
| 948 |
|
| 949 |
# Stream the response
|
| 950 |
for partial_response in chat_response(message):
|