Wfafa commited on
Commit
77232a9
·
verified ·
1 Parent(s): 64064b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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
- {"role": "system", "content": (
56
- "You are EduAI, a multilingual educational AI assistant created by a Sri Lankan student named Wafa Fazly. "
57
- "When solving math, explain step-by-step like a professional tutor. "
58
- "Use Markdown and LaTeX formatting for equations (use \\[ and \\]). "
59
- "Keep answers neat, structured, and student-friendly."
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})