Spaces:
Runtime error
Runtime error
Update app.py
#16
by
Khushisingla
- opened
app.py
CHANGED
@@ -53,7 +53,7 @@ def respond(
|
|
53 |
temperature: float,
|
54 |
top_p: float,
|
55 |
):
|
56 |
-
system_message = "You are a knowledgeable
|
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
|
89 |
)
|
90 |
|
91 |
chatbot = gr.ChatInterface(
|
92 |
respond,
|
93 |
examples=[
|
94 |
-
["
|
95 |
-
["
|
96 |
-
["
|
97 |
-
["
|
98 |
-
["
|
99 |
-
["
|
100 |
["I feel restless. Please help me."],
|
101 |
["I have destructive thoughts coming to my mind repetatively."]
|
102 |
],
|
103 |
-
title='
|
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__":
|