Spaces:
Runtime error
Runtime error
Commit ·
8cc8f94
1
Parent(s): 13baf05
commit 000000238
Browse files
app.py
CHANGED
|
@@ -107,7 +107,7 @@ async def chat_stream(body: ChatRequest):
|
|
| 107 |
"""
|
| 108 |
def generate():
|
| 109 |
reply = generate_full_reply(body.message, body.history)
|
| 110 |
-
for token in reply
|
| 111 |
yield token
|
| 112 |
time.sleep(0.05)
|
| 113 |
|
|
|
|
| 107 |
"""
|
| 108 |
def generate():
|
| 109 |
reply = generate_full_reply(body.message, body.history)
|
| 110 |
+
for token in reply:
|
| 111 |
yield token
|
| 112 |
time.sleep(0.05)
|
| 113 |
|