Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ def predict(inputs, chatbot):
|
|
| 47 |
if chunk.choices[0].delta.content:
|
| 48 |
print(chunk.choices[0].delta.content, end="", flush=True)
|
| 49 |
new_message["content"] += chunk.choices[0].delta.content
|
| 50 |
-
yield new_message
|
| 51 |
|
| 52 |
messages.append(new_message)
|
| 53 |
|
|
|
|
| 47 |
if chunk.choices[0].delta.content:
|
| 48 |
print(chunk.choices[0].delta.content, end="", flush=True)
|
| 49 |
new_message["content"] += chunk.choices[0].delta.content
|
| 50 |
+
yield new_message["content"]
|
| 51 |
|
| 52 |
messages.append(new_message)
|
| 53 |
|