Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def fn(
|
|
37 |
stream = True,
|
38 |
):
|
39 |
response = ""
|
40 |
-
token =
|
41 |
response += token
|
42 |
yield response
|
43 |
|
|
|
37 |
stream = True,
|
38 |
):
|
39 |
response = ""
|
40 |
+
token = prompt.choices[0].delta.content
|
41 |
response += token
|
42 |
yield response
|
43 |
|