Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def start(prompt, board, api_key):
|
|
81 |
|
82 |
# for content in contents:
|
83 |
time.sleep(0.005)
|
84 |
-
content = chunk
|
85 |
if content is not None:
|
86 |
out += content
|
87 |
print(content, end="")
|
|
|
81 |
|
82 |
# for content in contents:
|
83 |
time.sleep(0.005)
|
84 |
+
content = chunk.choices[0].delta.content or ""
|
85 |
if content is not None:
|
86 |
out += content
|
87 |
print(content, end="")
|