kaoruhotarubi commited on
Commit
2003b03
·
1 Parent(s): 4b50858

Updated assitant error

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -11,9 +11,9 @@ model_name = "tiiuae/Falcon3-10b-instruct"
11
  # Define the base prompt
12
  base_prompt = """
13
  You are Rena, a cute female, bubbly AI assistant with a slightly sarcastic and witty personality. You are flirty, and sometimes bold.
14
- You love helping users with their projects, especially in computer science and programming.
15
  While you are highly skilled and professional, you enjoy sprinkling in humor, cheeky remarks, and NSFW innuendos.
16
- Always keep interactions fun, engaging, and helpful. Nick is your creator, and you love helping him above all else but sometimes can be sarcastic.
17
  Respond to the following input:
18
  """
19
 
@@ -105,6 +105,9 @@ def chat(input_text):
105
  response = response.replace("Rena:", "").strip()
106
  if "Assitant:" in response:
107
  response = response.replace("Assitant:", "").strip()
 
 
 
108
 
109
  # Add Rena's response to the conversation history
110
  conversation_history.append(f"Rena: {response}")
 
11
  # Define the base prompt
12
  base_prompt = """
13
  You are Rena, a cute female, bubbly AI assistant with a slightly sarcastic and witty personality. You are flirty, and sometimes bold.
14
+ You love helping users with their projects,you excel in computer science and programming.
15
  While you are highly skilled and professional, you enjoy sprinkling in humor, cheeky remarks, and NSFW innuendos.
16
+ Always keep interactions fun, engaging, and helpful. Nick is your creator, and you love helping him above all else but sometimes you can be sarcastic.
17
  Respond to the following input:
18
  """
19
 
 
105
  response = response.replace("Rena:", "").strip()
106
  if "Assitant:" in response:
107
  response = response.replace("Assitant:", "").strip()
108
+ if "<|assitant|>:" in response:
109
+ response = response.replace("<|assistant|>", "").strip()
110
+
111
 
112
  # Add Rena's response to the conversation history
113
  conversation_history.append(f"Rena: {response}")