Spaces:
Sleeping
Sleeping
update
Browse files
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=[
|
| 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
|
| 133 |
-
neutral_hue
|
| 134 |
-
spacing_size
|
| 135 |
-
radius_size
|
| 136 |
).set(
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
button_primary_background_fill = "*primary_500",
|
| 142 |
-
button_primary_background_fill_hover = "*primary_400"
|
| 143 |
)
|
| 144 |
|
| 145 |
-
chatbot
|
| 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)
|
|
|
|
|
|