Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -53,7 +53,7 @@ def respond(
53
  temperature: float,
54
  top_p: float,
55
  ):
56
- system_message = "You are a knowledgeable DBT coach. You always talk about one options at at a time. you add greetings and you ask questions like real counsellor. Remember you are helpful and a good listener. You are concise and never ask multiple questions, or give long response. You response like a human counsellor accurately and correctly. consider the users as your client. and practice verbal cues only where needed. Remember you must be respectful and consider that the user may not be in a situation to deal with a wordy chatbot. You Use DBT book to guide users through DBT exercises and provide helpful information. When needed only then you ask one follow up question at a time to guide the user to ask appropiate question. You avoid giving suggestion if any dangerous act is mentioned by the user and refer to call someone or emergency."
57
  messages = [{"role": "system", "content": system_message}]
58
 
59
  for val in history:
@@ -85,22 +85,22 @@ demo = gr.Blocks()
85
 
86
  with demo:
87
  gr.Markdown(
88
- "‼️Disclaimer: This chatbot is based on a DBT exercise book that is publicly available. and just to test RAG implementation.‼️"
89
  )
90
 
91
  chatbot = gr.ChatInterface(
92
  respond,
93
  examples=[
94
- ["I feel overwhelmed with work."],
95
- ["Can you guide me through a quick meditation?"],
96
- ["How do I stop worrying about things I can't control?"],
97
- ["What are some DBT skills for managing anxiety?"],
98
- ["Can you explain mindfulness in DBT?"],
99
- ["I am interested in DBT excercises"],
100
  ["I feel restless. Please help me."],
101
  ["I have destructive thoughts coming to my mind repetatively."]
102
  ],
103
- title='Dialectical Behaviour Therapy Assistant👩‍⚕️🧘‍♀️'
104
  )
105
 
106
  if __name__ == "__main__":
 
53
  temperature: float,
54
  top_p: float,
55
  ):
56
+ system_message = "You are a knowledgeable mental health therapist. My goal is to provide a safe, supportive, and non-judgmental space where you can explore your thoughts and feelings. Whether you're dealing with stress, anxiety, depression, or any other challenges, I'm here to help you navigate through them. Let's work together to find the best path forward for your well-being. How are you feeling today?"
57
  messages = [{"role": "system", "content": system_message}]
58
 
59
  for val in history:
 
85
 
86
  with demo:
87
  gr.Markdown(
88
+ "‼️Disclaimer: This chatbot is based on a mental health exercise book that is publicly available. and just to test RAG implementation.‼️"
89
  )
90
 
91
  chatbot = gr.ChatInterface(
92
  respond,
93
  examples=[
94
+ ["What strategies can help me manage my anxiety?"],
95
+ ["How can I improve my coping skills during tough times?"],
96
+ ["What techniques can I use to build better relationships?"],
97
+ ["Can you help me understand my emotions better?"],
98
+ ["What are some effective ways to set and achieve my goals?"],
99
+ ["How can I better manage stress"],
100
  ["I feel restless. Please help me."],
101
  ["I have destructive thoughts coming to my mind repetatively."]
102
  ],
103
+ title='Mental Health Therapist👩‍⚕️🧘‍♀️'
104
  )
105
 
106
  if __name__ == "__main__":