Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def respond(
|
|
50 |
stream=True
|
51 |
):
|
52 |
# Tiến hành nhận phản hồi từ mô hình
|
53 |
-
response += chunk
|
54 |
|
55 |
except Exception as e:
|
56 |
return f"Error: {str(e)}"
|
|
|
50 |
stream=True
|
51 |
):
|
52 |
# Tiến hành nhận phản hồi từ mô hình
|
53 |
+
response += chunk.choices[0].delta.content
|
54 |
|
55 |
except Exception as e:
|
56 |
return f"Error: {str(e)}"
|