cochi1706 commited on
Commit
6b91e92
·
1 Parent(s): ff8fc2b

Add history initialization in respond function to support context tracking in chatbot application.

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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", "")