patti-j commited on
Commit
b241093
1 Parent(s): a85d613

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -22,6 +22,9 @@ chat = ChatWrapper()"""
22
 
23
  chatbot = gr.Chatbot()
24
 
 
 
 
25
  block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
26
 
27
  with block:
@@ -40,7 +43,7 @@ with block:
40
 
41
  with gr.Row():
42
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
43
- submit.set_on_click(get_response [message])
44
 
45
  gr.Examples(
46
  examples=[
 
22
 
23
  chatbot = gr.Chatbot()
24
 
25
+ def on_button_click():
26
+ get_response(message)
27
+
28
  block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
29
 
30
  with block:
 
43
 
44
  with gr.Row():
45
  submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
46
+ submit.on_click(on_button_click)
47
 
48
  gr.Examples(
49
  examples=[