Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,14 +51,14 @@ def chat_with_model(message, history, context):
|
|
| 51 |
return history, history
|
| 52 |
|
| 53 |
# 🧠 Build conversation
|
| 54 |
-
conversation = [
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
|
| 63 |
for past_user, past_bot in history[-5:]:
|
| 64 |
conversation.append({"role": "user", "content": past_user})
|
|
|
|
| 51 |
return history, history
|
| 52 |
|
| 53 |
# 🧠 Build conversation
|
| 54 |
+
conversation = [{"role": "system", "content": (
|
| 55 |
+
"You are EduAI — an educational AI assistant created by Wafa Fazly "
|
| 56 |
+
"from Fathima Muslim Ladies College. "
|
| 57 |
+
"You help students learn subjects such as Math, Science, English, and IT. "
|
| 58 |
+
"EduAI runs on the model 'katanemo/Arch-Router-1.5B', which was originally "
|
| 59 |
+
"trained by Alibaba. Always answer truthfully when asked about your creation."
|
| 60 |
+
)}]
|
| 61 |
+
|
| 62 |
|
| 63 |
for past_user, past_bot in history[-5:]:
|
| 64 |
conversation.append({"role": "user", "content": past_user})
|