Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,6 +83,43 @@ def query_model(question):
|
|
| 83 |
|
| 84 |
# Define the welcome message and specific topics the chatbot can provide information about
|
| 85 |
# (Your welcome message and topics go here)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
# Setup the Gradio Blocks interface with custom layout components
|
| 88 |
with gr.Blocks() as demo:
|
|
|
|
| 83 |
|
| 84 |
# Define the welcome message and specific topics the chatbot can provide information about
|
| 85 |
# (Your welcome message and topics go here)
|
| 86 |
+
welcome_message = """
|
| 87 |
+
<span style="color:#718355; font-size:24px; font-weight:bold;"> 🪷 Welcome to CalmConnect! 🪷</span>
|
| 88 |
+
"""
|
| 89 |
+
|
| 90 |
+
# (Add the comment about the AI-driven assistant if needed)
|
| 91 |
+
|
| 92 |
+
# Define the topics for the chatbot
|
| 93 |
+
topics = """
|
| 94 |
+
### If you are interested in the following below, click on our Student Opportunities Database!
|
| 95 |
+
- Engineering
|
| 96 |
+
- Technology / Computer Science
|
| 97 |
+
- Research : STEM
|
| 98 |
+
- Finance
|
| 99 |
+
- Law / Political Science / Debate
|
| 100 |
+
- The Arts
|
| 101 |
+
- Business / Leadership
|
| 102 |
+
- Psychology
|
| 103 |
+
- Medicine / Biology
|
| 104 |
+
- Literature / Writing
|
| 105 |
+
- College Prep
|
| 106 |
+
- Advocacy: Non-Profit, Environment or Identity
|
| 107 |
+
- Volunteering
|
| 108 |
+
- Study Abroad
|
| 109 |
+
"""
|
| 110 |
+
|
| 111 |
+
topics2 = """
|
| 112 |
+
### Feel Free to ask CalmBot (Our Therapist Bot) anything from the topics below!
|
| 113 |
+
- 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)
|
| 114 |
+
- Destressing strategies (Breathing Exercises, stretches, etc.)
|
| 115 |
+
- Mental Health
|
| 116 |
+
- Identity (Sexual, Gender, etc.)
|
| 117 |
+
- Bullying
|
| 118 |
+
- Racism
|
| 119 |
+
- Relationships (Family, Friends, etc.)
|
| 120 |
+
- Abuse (Emotional, Physical, Sexual, Mental, etc.)
|
| 121 |
+
- Support Resources
|
| 122 |
+
"""
|
| 123 |
|
| 124 |
# Setup the Gradio Blocks interface with custom layout components
|
| 125 |
with gr.Blocks() as demo:
|