fix token == None issue
Browse files
app.py
CHANGED
|
@@ -39,7 +39,8 @@ def respond(
|
|
| 39 |
):
|
| 40 |
token = message.choices[0].delta.content
|
| 41 |
|
| 42 |
-
|
|
|
|
| 43 |
yield response
|
| 44 |
|
| 45 |
"""
|
|
|
|
| 39 |
):
|
| 40 |
token = message.choices[0].delta.content
|
| 41 |
|
| 42 |
+
if token:
|
| 43 |
+
response += token
|
| 44 |
yield response
|
| 45 |
|
| 46 |
"""
|