Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def respond(
|
|
44 |
stream=True
|
45 |
):
|
46 |
# Tiến hành nhận phản hồi từ mô hình
|
47 |
-
token = chunk
|
48 |
response += token
|
49 |
|
50 |
except Exception as e:
|
|
|
44 |
stream=True
|
45 |
):
|
46 |
# Tiến hành nhận phản hồi từ mô hình
|
47 |
+
token = chunk.choices[0].delta.content
|
48 |
response += token
|
49 |
|
50 |
except Exception as e:
|