adrinavaz commited on
Commit
54822b5
·
verified ·
1 Parent(s): cf0463d
Files changed (1) hide show
  1. app.py +23 -15
app.py CHANGED
@@ -109,6 +109,26 @@ User question:
109
 
110
  return response.choices[0].message.content.strip()
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  chatbot = gr.ChatInterface(
113
  respond,
114
  title="🌱 Teen Mental Wellness Chatbot",
@@ -123,20 +143,8 @@ chatbot = gr.ChatInterface(
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)
 
109
 
110
  return response.choices[0].message.content.strip()
111
 
112
+ custom_css = """
113
+ body {
114
+ background: #e8f5f1;
115
+ }
116
+
117
+ .gradio-container {
118
+ background: #e8f5f1;
119
+ }
120
+
121
+ textarea {
122
+ background-color: #ffffff !important;
123
+ border: 2px solid #7fc8a9 !important;
124
+ }
125
+
126
+ button {
127
+ background-color: #7fc8a9 !important;
128
+ color: white !important;
129
+ }
130
+ """
131
+
132
  chatbot = gr.ChatInterface(
133
  respond,
134
  title="🌱 Teen Mental Wellness Chatbot",
 
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()