Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def respond(message,history):
|
|
| 16 |
response = ""
|
| 17 |
|
| 18 |
for message in client.chat_completion(messages,max_tokens=50, stream=True):
|
| 19 |
-
token =
|
| 20 |
response += token
|
| 21 |
yield response
|
| 22 |
|
|
|
|
| 16 |
response = ""
|
| 17 |
|
| 18 |
for message in client.chat_completion(messages,max_tokens=50, stream=True):
|
| 19 |
+
token = message.choices[0].delta.content
|
| 20 |
response += token
|
| 21 |
yield response
|
| 22 |
|