Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,8 @@ def respond(
|
|
| 45 |
|
| 46 |
output = ""
|
| 47 |
for chunk in stream:
|
| 48 |
-
|
|
|
|
| 49 |
output += delta
|
| 50 |
yield output
|
| 51 |
|
|
|
|
| 45 |
|
| 46 |
output = ""
|
| 47 |
for chunk in stream:
|
| 48 |
+
print(chunk.choices[0])
|
| 49 |
+
delta = chunk.choices[0].delta.content or ""
|
| 50 |
output += delta
|
| 51 |
yield output
|
| 52 |
|