Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -160,6 +160,10 @@ with gr.Blocks() as chatbot:
|
|
160 |
with gr.Row():
|
161 |
mom_type = gr.CheckboxGroup(["Cool Mom", "Tutor Mom", "Strict Mom"],label = "Choose Your Mom")
|
162 |
|
|
|
|
|
|
|
|
|
163 |
custom_theme = gr.themes.Soft(
|
164 |
primary_hue="purple",
|
165 |
secondary_hue="fuchsia",
|
@@ -169,13 +173,8 @@ with gr.Blocks() as chatbot:
|
|
169 |
text_size="lg",
|
170 |
font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
|
171 |
font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"]
|
172 |
-
)
|
173 |
chatbot = gr.ChatInterface(respond, type="messages", theme=custom_theme)
|
174 |
-
|
175 |
-
gr.ChatInterface(
|
176 |
-
fn=respond,
|
177 |
-
additional_inputs=[mom_type],
|
178 |
-
title="StudyMama"
|
179 |
)
|
180 |
|
181 |
# with gr.Blocks() as chatbot:
|
|
|
160 |
with gr.Row():
|
161 |
mom_type = gr.CheckboxGroup(["Cool Mom", "Tutor Mom", "Strict Mom"],label = "Choose Your Mom")
|
162 |
|
163 |
+
gr.ChatInterface(
|
164 |
+
fn=respond,
|
165 |
+
additional_inputs=[mom_type],
|
166 |
+
title="StudyMama",
|
167 |
custom_theme = gr.themes.Soft(
|
168 |
primary_hue="purple",
|
169 |
secondary_hue="fuchsia",
|
|
|
173 |
text_size="lg",
|
174 |
font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
|
175 |
font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"]
|
176 |
+
)
|
177 |
chatbot = gr.ChatInterface(respond, type="messages", theme=custom_theme)
|
|
|
|
|
|
|
|
|
|
|
178 |
)
|
179 |
|
180 |
# with gr.Blocks() as chatbot:
|