Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -188,8 +188,13 @@ class ModelManager:
|
|
| 188 |
|
| 189 |
if history is None:
|
| 190 |
history = []
|
| 191 |
-
|
| 192 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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(
|