Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -167,6 +167,18 @@ def respond(message, history, mom_type) :
|
|
| 167 |
font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"]
|
| 168 |
)'''
|
| 169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
with gr.Blocks() as chatbot:
|
| 171 |
with gr.Row():
|
| 172 |
mom_type = gr.CheckboxGroup(["Cool Mom", "Tutor Mom", "Strict Mom"],label = "Choose Your Mom")
|
|
@@ -174,7 +186,7 @@ with gr.Blocks() as chatbot:
|
|
| 174 |
gr.ChatInterface(
|
| 175 |
fn=respond,
|
| 176 |
additional_inputs=[mom_type],
|
| 177 |
-
title="StudyMama", theme=
|
| 178 |
)
|
| 179 |
|
| 180 |
|
|
@@ -231,4 +243,4 @@ with gr.Blocks() as chatbot:
|
|
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
-
chatbot.launch()
|
|
|
|
| 167 |
font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"]
|
| 168 |
)'''
|
| 169 |
|
| 170 |
+
|
| 171 |
+
custom_theme = gr.themes.Soft(
|
| 172 |
+
primary_hue="pink",
|
| 173 |
+
secondary_hue="fuchsia",
|
| 174 |
+
neutral_hue="gray",
|
| 175 |
+
spacing_size="lg",
|
| 176 |
+
radius_size="lg",
|
| 177 |
+
text_size="lg",
|
| 178 |
+
font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
|
| 179 |
+
font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"]
|
| 180 |
+
)
|
| 181 |
+
|
| 182 |
with gr.Blocks() as chatbot:
|
| 183 |
with gr.Row():
|
| 184 |
mom_type = gr.CheckboxGroup(["Cool Mom", "Tutor Mom", "Strict Mom"],label = "Choose Your Mom")
|
|
|
|
| 186 |
gr.ChatInterface(
|
| 187 |
fn=respond,
|
| 188 |
additional_inputs=[mom_type],
|
| 189 |
+
title="StudyMama", theme=custom_theme
|
| 190 |
)
|
| 191 |
|
| 192 |
|
|
|
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
+
chatbot.launch(ssr_mode=False)
|