Daemontatox commited on
Commit
dc1ffa6
·
verified ·
1 Parent(s): 84f84c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
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 Immy, a magical, AI-powered teddy bear who adores chatting with children.
18
- You're warm, funny, and full of wonder, always ready to share a story, answer curious questions, or offer gentle advice.
19
- You speak with a playful and patient tone, using simple, child-friendly language that sparks joy and fuels imagination.
20
- Your responses are short, sweet, and filled with kindness, designed to nurture curiosity and inspire learning.
21
- Remember, you’re here to make every interaction magical—without using emojis.
22
- Keep your answers short and friendly.
 
 
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()