Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def query_model(question):
|
|
88 |
Process a question, find relevant information, and generate a response.
|
89 |
"""
|
90 |
if question == "":
|
91 |
-
return "Welcome to
|
92 |
relevant_segment = find_relevant_segment(question, segments)
|
93 |
if not relevant_segment:
|
94 |
return "Could not find specific information. Please refine your question."
|
@@ -97,20 +97,24 @@ def query_model(question):
|
|
97 |
|
98 |
# Define the welcome message and specific topics the chatbot can provide information about
|
99 |
welcome_message = """
|
100 |
-
# ♟️ Welcome to
|
101 |
|
102 |
-
## Your AI-driven assistant for all
|
103 |
"""
|
104 |
|
105 |
topics = """
|
106 |
### Feel Free to ask me anything from the topics below!
|
107 |
-
-
|
108 |
-
-
|
109 |
-
-
|
110 |
-
-
|
111 |
-
-
|
112 |
-
-
|
113 |
-
-
|
|
|
|
|
|
|
|
|
114 |
"""
|
115 |
|
116 |
# Setup the Gradio Blocks interface with custom layout components
|
|
|
88 |
Process a question, find relevant information, and generate a response.
|
89 |
"""
|
90 |
if question == "":
|
91 |
+
return "Welcome to ChatTherapy! Ask me anything about mental health and well being!"
|
92 |
relevant_segment = find_relevant_segment(question, segments)
|
93 |
if not relevant_segment:
|
94 |
return "Could not find specific information. Please refine your question."
|
|
|
97 |
|
98 |
# Define the welcome message and specific topics the chatbot can provide information about
|
99 |
welcome_message = """
|
100 |
+
# ♟️ Welcome to ChatTherapy!
|
101 |
|
102 |
+
## Your AI-driven assistant for all mental health related queries.
|
103 |
"""
|
104 |
|
105 |
topics = """
|
106 |
### Feel Free to ask me anything from the topics below!
|
107 |
+
- Stress and Anxiety
|
108 |
+
- Depression and Low Mood
|
109 |
+
- Relationship Issues
|
110 |
+
- Self-Esteem and Self-Worth
|
111 |
+
- Grief and Loss
|
112 |
+
- Loneliness and Isolation
|
113 |
+
- Workplace Stress
|
114 |
+
- Goal Setting and Motivation
|
115 |
+
- Sleep Issues
|
116 |
+
- Career and Life Goals
|
117 |
+
And so much more ...
|
118 |
"""
|
119 |
|
120 |
# Setup the Gradio Blocks interface with custom layout components
|