Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -156,15 +156,18 @@ def respond(message, history, mom_type) :
|
|
| 156 |
# NN commented out
|
| 157 |
# chatbot = gr.ChatInterface(respond, type="messages")
|
| 158 |
|
| 159 |
-
|
| 160 |
-
primary
|
| 161 |
-
secondary="fuchsia",
|
| 162 |
neutral="gray",
|
| 163 |
spacing="lg",
|
| 164 |
radius="lg",
|
| 165 |
-
|
| 166 |
font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
|
| 167 |
-
font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"]
|
|
|
|
|
|
|
|
|
|
| 168 |
with gr.Row():
|
| 169 |
mom_type = gr.CheckboxGroup(["Cool Mom", "Tutor Mom", "Strict Mom"],label = "Choose Your Mom")
|
| 170 |
|
|
@@ -172,7 +175,6 @@ with gr.Blocks(theme = gr.themes.Soft,
|
|
| 172 |
fn=respond,
|
| 173 |
additional_inputs=[mom_type],
|
| 174 |
title="StudyMama",
|
| 175 |
-
chatbot = gr.ChatInterface(respond, type="messages", theme=custom_theme)
|
| 176 |
)
|
| 177 |
|
| 178 |
# with gr.Blocks() as chatbot:
|
|
|
|
| 156 |
# NN commented out
|
| 157 |
# chatbot = gr.ChatInterface(respond, type="messages")
|
| 158 |
|
| 159 |
+
custom_theme = gr.themes.Soft(
|
| 160 |
+
primary="purple",
|
| 161 |
+
secondary="fuchsia",
|
| 162 |
neutral="gray",
|
| 163 |
spacing="lg",
|
| 164 |
radius="lg",
|
| 165 |
+
text_size="lg",
|
| 166 |
font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
|
| 167 |
+
font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"]
|
| 168 |
+
)
|
| 169 |
+
|
| 170 |
+
with gr.Blocks(theme = custom_theme) as chatbot:
|
| 171 |
with gr.Row():
|
| 172 |
mom_type = gr.CheckboxGroup(["Cool Mom", "Tutor Mom", "Strict Mom"],label = "Choose Your Mom")
|
| 173 |
|
|
|
|
| 175 |
fn=respond,
|
| 176 |
additional_inputs=[mom_type],
|
| 177 |
title="StudyMama",
|
|
|
|
| 178 |
)
|
| 179 |
|
| 180 |
# with gr.Blocks() as chatbot:
|