adrinavaz commited on
Commit
ad099d1
·
verified ·
1 Parent(s): 54822b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -129,22 +129,22 @@ button {
129
  }
130
  """
131
 
132
- chatbot = gr.ChatInterface(
133
- respond,
134
- title="🌱 Teen Mental Wellness Chatbot",
135
- description="""
136
- Feeling stressed, anxious, or overwhelmed? Ask me questions about mental wellness, coping strategies, and emotional well-being.
137
-
138
- This chatbot is for support and education and is not a replacement for professional mental health care.
139
- """,
140
- examples=[
141
- "I've been feeling stressed about school lately.",
142
- "What are some coping strategies for anxiety?",
143
- "How can I manage test anxiety?",
144
- "What should I do when I'm feeling overwhelmed?",
145
- "My parents put a lot of pressure on me."
146
- ],
147
- css=custom_css
148
- )
149
-
150
- chatbot.launch()
 
129
  }
130
  """
131
 
132
+ with gr.Blocks(css=custom_css) as app:
133
+ gr.ChatInterface(
134
+ respond,
135
+ title="🌱 Teen Mental Wellness Chatbot",
136
+ description="""
137
+ Feeling stressed, anxious, or overwhelmed? Ask me questions about mental wellness, coping strategies, and emotional well-being.
138
+
139
+ This chatbot is for support and education and is not a replacement for professional mental health care.
140
+ """,
141
+ examples=[
142
+ "I've been feeling stressed about school lately.",
143
+ "What are some coping strategies for anxiety?",
144
+ "How can I manage test anxiety?",
145
+ "What should I do when I'm feeling overwhelmed?",
146
+ "My parents put a lot of pressure on me."
147
+ ]
148
+ )
149
+
150
+ app.launch()