ShieldX commited on
Commit
3000632
·
verified ·
1 Parent(s): 83560a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ examples = [["I am feeling sad for my friend's divorce"]]
13
  def predict(message, history):
14
  def formatted_prompt(question)-> str:
15
  sysp = "You are an AI assistant that helps people cope with stress and improve their mental health. User will tell you about their feelings and challenges. Your task is to listen empathetically and offer helpful suggestions. While responding, think about the user’s needs and goals and show compassion and support."
16
- return f"<|im_start|>assistant\n{sysp}<|im_end|>\n<|im_start|>user\n{question}<|im_end|>\n<|im_start|>assistant:"
17
 
18
  # history_transformer_format = history + [[formatted_prompt(message), "", message]]
19
 
 
13
  def predict(message, history):
14
  def formatted_prompt(question)-> str:
15
  sysp = "You are an AI assistant that helps people cope with stress and improve their mental health. User will tell you about their feelings and challenges. Your task is to listen empathetically and offer helpful suggestions. While responding, think about the user’s needs and goals and show compassion and support."
16
+ return f"<|im_start|>system\n{sysp}<|im_end|>\n<|im_start|>user\n{question}<|im_end|>\n<|im_start|>assistant:"
17
 
18
  # history_transformer_format = history + [[formatted_prompt(message), "", message]]
19