mrbui1990 commited on
Commit
95a7c19
·
verified ·
1 Parent(s): e5b14f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def chat_with_model(prompt, system_prompt, chatbot_display, internal_history):
24
  expected_key = os.environ.get("hf_key")
25
  if expected_key not in prompt:
26
  print("❌ Invalid key.")
27
- return None
28
  prompt = prompt.replace(expected_key, "")
29
  # 1. Khởi tạo nếu đây là lần chạy đầu tiên
30
  # chatbot_display là [[user_msg, ai_msg], ...]
 
24
  expected_key = os.environ.get("hf_key")
25
  if expected_key not in prompt:
26
  print("❌ Invalid key.")
27
+ return "", chatbot_display, internal_history
28
  prompt = prompt.replace(expected_key, "")
29
  # 1. Khởi tạo nếu đây là lần chạy đầu tiên
30
  # chatbot_display là [[user_msg, ai_msg], ...]