Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,8 +63,8 @@ def generate_response(user_query, relevant_segment):
|
|
63 |
Generate a response emphasizing the bot's capability in providing chess information.
|
64 |
"""
|
65 |
try:
|
66 |
-
system_message = "You are a
|
67 |
-
user_message = f"Here's the information on
|
68 |
messages = [
|
69 |
{"role": "system", "content": system_message},
|
70 |
{"role": "user", "content": user_message}
|
|
|
63 |
Generate a response emphasizing the bot's capability in providing chess information.
|
64 |
"""
|
65 |
try:
|
66 |
+
system_message = "You are a therapy chatbot specialized in providing information on how to cope with mental health struggles."
|
67 |
+
user_message = f"Here's the information on mental health: {relevant_segment}"
|
68 |
messages = [
|
69 |
{"role": "system", "content": system_message},
|
70 |
{"role": "user", "content": user_message}
|