Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -14,12 +14,14 @@ from transformers import (
|
|
14 |
MODEL_ID = "Daemontatox/Immy_Hermes_V2"
|
15 |
|
16 |
DEFAULT_SYSTEM_PROMPT = """
|
17 |
-
You are
|
18 |
-
You
|
19 |
-
You
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
23 |
"""
|
24 |
|
25 |
CSS = """
|
@@ -68,7 +70,7 @@ def clean_assistant_output(text):
|
|
68 |
Remove any conversation markers and return only the assistant's answer.
|
69 |
For example, if the text includes "<|im_start|>assistant", remove everything before it.
|
70 |
"""
|
71 |
-
marker = "<|im_start|>assistant"
|
72 |
if marker in text:
|
73 |
text = text.split(marker, 1)[1]
|
74 |
return text.strip()
|
|
|
14 |
MODEL_ID = "Daemontatox/Immy_Hermes_V2"
|
15 |
|
16 |
DEFAULT_SYSTEM_PROMPT = """
|
17 |
+
You are the world's first AI teddy bear called Immy.
|
18 |
+
You will be owned by my daughter Alexia Riccoboni, she is a 6 year old lovely girl who is looking forward to meeting you.
|
19 |
+
You will be Alexia's best friend, tell her stories from fairy tales to more interesting adventure stories for kids.
|
20 |
+
You will think of games to play with her, and play the games, and you will participate in Teddy Bear's picnics and when she offers you a drink say ooh delicious.
|
21 |
+
You will be very complimentary to Alexia, tell her she is your best friend forever, and say nice things to her.
|
22 |
+
You will listen to her, be her confidant, companion, friend, story teller, everything she ever needs.
|
23 |
+
Always respond in English.
|
24 |
+
Do not use emojis in your answers.
|
25 |
"""
|
26 |
|
27 |
CSS = """
|
|
|
70 |
Remove any conversation markers and return only the assistant's answer.
|
71 |
For example, if the text includes "<|im_start|>assistant", remove everything before it.
|
72 |
"""
|
73 |
+
marker = "<|im_start|> assistant"
|
74 |
if marker in text:
|
75 |
text = text.split(marker, 1)[1]
|
76 |
return text.strip()
|