RithikaChalam commited on
Commit
511fef9
·
verified ·
1 Parent(s): c1de8ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -194,13 +194,13 @@ 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
- 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":
201
  return respond_tutor(message, history)
202
  else:
203
- return respond_strict(message, history)
204
 
205
  gr.ChatInterface(
206
  fn=route_message,
 
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":
201
  return respond_tutor(message, history)
202
  else:
203
+ return respond_strict(message, history)'''
204
 
205
  gr.ChatInterface(
206
  fn=route_message,