patti-j commited on
Commit
1d2f94c
·
1 Parent(s): a27b72b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -22,8 +22,10 @@ chat = ChatWrapper()"""
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
 
@@ -42,8 +44,8 @@ with block:
42
  )
43
 
44
  with gr.Row():
45
- submit = gr.Button("Send")
46
- submit.click(on_button_click)
47
 
48
  gr.Examples(
49
  examples=[
 
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}")
31
 
 
44
  )
45
 
46
  with gr.Row():
47
+ submit = gr.Button(color="lightblue", value="Send", variant="secondary").style(full_width=False)
48
+ submit.click(on_button_click, [message])
49
 
50
  gr.Examples(
51
  examples=[