Update app.py
Browse files
app.py
CHANGED
|
@@ -132,7 +132,7 @@ client = InferenceClient(api_key=HF_TOKEN) if HF_TOKEN else None
|
|
| 132 |
|
| 133 |
# --------------------------- العقل المدبر (AI Logic) ---------------------------
|
| 134 |
|
| 135 |
-
|
| 136 |
if not client:
|
| 137 |
yield history + [{"role": "assistant", "content": "⚠️ النظام متوقف: HF_TOKEN غير موجود."}]
|
| 138 |
return
|
|
|
|
| 132 |
|
| 133 |
# --------------------------- العقل المدبر (AI Logic) ---------------------------
|
| 134 |
|
| 135 |
+
def engine_response(message, history):
|
| 136 |
if not client:
|
| 137 |
yield history + [{"role": "assistant", "content": "⚠️ النظام متوقف: HF_TOKEN غير موجود."}]
|
| 138 |
return
|