patti-j commited on
Commit
da0dfa9
1 Parent(s): 2588869

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -22,9 +22,9 @@ chat = ChatWrapper()"""
22
 
23
  chatbot = gr.Chatbot()
24
 
25
- def on_button_click(inp):
26
- # get_response(message)
27
- print(f"You entered: {inp}")
28
 
29
 
30
  block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
@@ -56,6 +56,6 @@ with block:
56
  inputs=message,
57
  )
58
 
59
- # submit.on_click(get_response, inputs=[message], outputs=[chatbot])
60
 
61
  block.launch(debug=True)
 
22
 
23
  chatbot = gr.Chatbot()
24
 
25
+ def get_response(message)
26
+ response = (f"You entered: {inp}")
27
+ return response
28
 
29
 
30
  block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
 
56
  inputs=message,
57
  )
58
 
59
+ submit.click(get_response, inputs=[message], outputs=[chatbot])
60
 
61
  block.launch(debug=True)