Spaces:
Sleeping
Sleeping
Add history initialization in respond function to support context tracking in chatbot application.
Browse files
app.py
CHANGED
|
@@ -42,6 +42,7 @@ def respond(
|
|
| 42 |
"""
|
| 43 |
Tạo phản hồi từ model coding assistant sử dụng pipeline
|
| 44 |
"""
|
|
|
|
| 45 |
# Xử lý message - có thể là dict hoặc string
|
| 46 |
if isinstance(message, dict):
|
| 47 |
user_message = message.get("content", "")
|
|
|
|
| 42 |
"""
|
| 43 |
Tạo phản hồi từ model coding assistant sử dụng pipeline
|
| 44 |
"""
|
| 45 |
+
history = []
|
| 46 |
# Xử lý message - có thể là dict hoặc string
|
| 47 |
if isinstance(message, dict):
|
| 48 |
user_message = message.get("content", "")
|