Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -176,15 +176,15 @@ chatbot = gr.ChatInterface(respond_cool, type="messages")
|
|
176 |
# )
|
177 |
# return response['choices'][0]['message']['content'].strip()
|
178 |
|
179 |
-
|
180 |
|
181 |
-
|
182 |
-
|
183 |
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
)
|
189 |
|
190 |
chatbot.launch()
|
|
|
176 |
# )
|
177 |
# return response['choices'][0]['message']['content'].strip()
|
178 |
|
179 |
+
with gr.Blocks() as chatbot:
|
180 |
|
181 |
+
with gr.Row():
|
182 |
+
mom_type = gr.CheckboxGroup(['Cool Mom', 'Tutor Mom', 'Strict Mom'],label='Choose Your Mom')
|
183 |
|
184 |
+
gr.ChatInterface(
|
185 |
+
fn=route_message,
|
186 |
+
additional_inputs=[mom_type],
|
187 |
+
title="StudyMama"
|
188 |
)
|
189 |
|
190 |
chatbot.launch()
|