Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def query_model(question):
|
|
103 |
Process a question, find relevant information, and generate a response.
|
104 |
"""
|
105 |
if question == "":
|
106 |
-
return "Welcome to CalmConnect! Ask me anything about destressing strategies
|
107 |
relevant_segment = find_relevant_segment(question, segments)
|
108 |
if not relevant_segment:
|
109 |
return "Could not find specific information. Please refine your question or head to our resources page."
|
@@ -114,7 +114,7 @@ def query_model(question):
|
|
114 |
|
115 |
# Define the welcome message and specific topics the chatbot can provide information about
|
116 |
welcome_message = """
|
117 |
-
<span style="color:#718355; font-size:24px; font-weight:bold;"> 🪷 Welcome to
|
118 |
"""
|
119 |
|
120 |
"""
|
@@ -124,7 +124,7 @@ welcome_message = """
|
|
124 |
|
125 |
|
126 |
topics= """
|
127 |
-
### Feel Free to ask CalmBot (Our
|
128 |
- Arts and Crafts (When asking for arts and crafts ideas, state whether you have 15 min, 30 min, 45 min, 1 hour, 1 hour and a half, 2 hours, 2 hours and a half, 3 hours or greater)
|
129 |
- Destressing strategies (Breathing Exercises, stretches, etc.)
|
130 |
- Mental Health
|
|
|
103 |
Process a question, find relevant information, and generate a response.
|
104 |
"""
|
105 |
if question == "":
|
106 |
+
return "Welcome to CalmConnect's CalmBot! Ask me anything about destressing strategies and we'll provide you ways to unlock your inner calm!"
|
107 |
relevant_segment = find_relevant_segment(question, segments)
|
108 |
if not relevant_segment:
|
109 |
return "Could not find specific information. Please refine your question or head to our resources page."
|
|
|
114 |
|
115 |
# Define the welcome message and specific topics the chatbot can provide information about
|
116 |
welcome_message = """
|
117 |
+
<span style="color:#718355; font-size:24px; font-weight:bold;"> 🪷 Welcome to CalmBot! 🪷</span>
|
118 |
"""
|
119 |
|
120 |
"""
|
|
|
124 |
|
125 |
|
126 |
topics= """
|
127 |
+
### Feel Free to ask CalmBot (Our Chat Bot) anything from the topics below!
|
128 |
- Arts and Crafts (When asking for arts and crafts ideas, state whether you have 15 min, 30 min, 45 min, 1 hour, 1 hour and a half, 2 hours, 2 hours and a half, 3 hours or greater)
|
129 |
- Destressing strategies (Breathing Exercises, stretches, etc.)
|
130 |
- Mental Health
|