adrinavaz commited on
Commit
cf0463d
·
verified ·
1 Parent(s): 0d4c2c1
Files changed (1) hide show
  1. app.py +11 -16
app.py CHANGED
@@ -117,31 +117,26 @@ chatbot = gr.ChatInterface(
117
 
118
  This chatbot is for support and education and is not a replacement for professional mental health care.
119
  """,
120
- examples=[ # give the user example prompts
121
  "I've been feeling stressed about school lately.",
122
  "What are some coping strategies for anxiety?",
123
  "How can I manage test anxiety?",
124
  "What should I do when I'm feeling overwhelmed?",
125
  "My parents put a lot of pressure on me."
126
  ]
127
-
128
- )
129
 
130
  chat_theme = gr.themes.Soft(
131
  primary_hue="blue",
132
- secondary_hue = "green",
133
- neutral_hue = "gray",
134
- spacing_size = "lg",
135
- radius_size = "lg"
136
  ).set(
137
- #Input area
138
- input_background_fill = "*neutral_50",
139
- input_border_color_focus = "*primary_300",
140
- #Button styling
141
- button_primary_background_fill = "*primary_500",
142
- button_primary_background_fill_hover = "*primary_400"
143
  )
144
 
145
- chatbot = gr.ChatInterface(respond, type="messages", theme=chat_theme)
146
-
147
- chatbot.launch(ssr_mode=False)
 
117
 
118
  This chatbot is for support and education and is not a replacement for professional mental health care.
119
  """,
120
+ examples=[
121
  "I've been feeling stressed about school lately.",
122
  "What are some coping strategies for anxiety?",
123
  "How can I manage test anxiety?",
124
  "What should I do when I'm feeling overwhelmed?",
125
  "My parents put a lot of pressure on me."
126
  ]
127
+ )
 
128
 
129
  chat_theme = gr.themes.Soft(
130
  primary_hue="blue",
131
+ secondary_hue="green",
132
+ neutral_hue="gray",
133
+ spacing_size="lg",
134
+ radius_size="lg"
135
  ).set(
136
+ input_background_fill="*neutral_50",
137
+ input_border_color_focus="*primary_300",
138
+ button_primary_background_fill="*primary_500",
139
+ button_primary_background_fill_hover="*primary_400"
 
 
140
  )
141
 
142
+ chatbot.launch(theme=chat_theme)