riyamalshe commited on
Commit
3c3edd4
·
verified ·
1 Parent(s): 7aa9944

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -114,9 +114,9 @@ with gr.Blocks() as chatbot:
114
  tutor_button = gr.Button("Tutor Mom")
115
  strict_button = gr.Button("Strict Mom")
116
 
117
- cool_button.click(fn=[]: handle_click("Button 1"), inputs=[], outputs=respond(message, history, "Cool Mom"))
118
- tutor_button.click(fn=[]: handle_click("Button 2"), inputs=[], outputs=respond(message, history, "Tutor Mom"))
119
- strict_button.click(fn=[]: handle_click("Button 3"), inputs=[], outputs=respond(message, history, "Strict Mom"))
120
 
121
  gr.ChatInterface(
122
  #fn=respond,
 
114
  tutor_button = gr.Button("Tutor Mom")
115
  strict_button = gr.Button("Strict Mom")
116
 
117
+ cool_button.click(fn=[], inputs=[], outputs=respond(message, history, "Cool Mom"))
118
+ tutor_button.click(fn=[], inputs=[], outputs=respond(message, history, "Tutor Mom"))
119
+ strict_button.click(fn=[], inputs=[], outputs=respond(message, history, "Strict Mom"))
120
 
121
  gr.ChatInterface(
122
  #fn=respond,