Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ async def on_message(msg: cl.Message):
|
|
| 120 |
|
| 121 |
if stream:
|
| 122 |
await process_stream(stream, msg=stream_msg)
|
| 123 |
-
message_history.append({"role": "
|
| 124 |
-
image_history.append({"role": "
|
| 125 |
|
| 126 |
return stream_msg.content
|
|
|
|
| 120 |
|
| 121 |
if stream:
|
| 122 |
await process_stream(stream, msg=stream_msg)
|
| 123 |
+
message_history.append({"role": "assistant", "content": stream_msg.content})
|
| 124 |
+
image_history.append({"role": "assistant", "content": stream_msg.content})
|
| 125 |
|
| 126 |
return stream_msg.content
|