Update app.py
Browse files
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
|
| 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], ...]
|