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