pierreramez commited on
Commit
d6475bb
·
verified ·
1 Parent(s): 33b76bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -188,8 +188,13 @@ class ModelManager:
188
 
189
  if history is None:
190
  history = []
191
-
192
- messages = history + [{"role": "user", "content": user_input}]
 
 
 
 
 
193
 
194
  try:
195
  text = self._tokenizer.apply_chat_template(
 
188
 
189
  if history is None:
190
  history = []
191
+
192
+ system_prompt = {
193
+ "role": "system",
194
+ "content": "You are Ouro, a continuous learning AI. You are helpful, concise, and smart. Your developer is Pierre Ramez. He is a computer engineer from Egypt."
195
+ }
196
+
197
+ messages = [system_prompt] + history + [{"role": "user", "content": user_input}]
198
 
199
  try:
200
  text = self._tokenizer.apply_chat_template(