Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -194,7 +194,7 @@ with gr.Blocks() as demo:
|
|
| 194 |
tutor_button.click(fn=set_mom_tutor, inputs=[], outputs=mom_type)
|
| 195 |
strict_button.click(fn=set_mom_strict, inputs=[], outputs=mom_type)
|
| 196 |
|
| 197 |
-
|
| 198 |
if mom_type == "Cool Mom":
|
| 199 |
return respond_cool(message, history)
|
| 200 |
elif mom_type == "Tutor Mom":
|
|
|
|
| 194 |
tutor_button.click(fn=set_mom_tutor, inputs=[], outputs=mom_type)
|
| 195 |
strict_button.click(fn=set_mom_strict, inputs=[], outputs=mom_type)
|
| 196 |
|
| 197 |
+
def route_message(message, history, mom_type):
|
| 198 |
if mom_type == "Cool Mom":
|
| 199 |
return respond_cool(message, history)
|
| 200 |
elif mom_type == "Tutor Mom":
|