ArrcttacsrjksX commited on
Commit
475a923
·
verified ·
1 Parent(s): 20041b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -76,7 +76,13 @@ with gr.Blocks() as demo:
76
  yield history
77
 
78
  # Event handlers
79
- textbox.submit(add_user_message, [textbox, chatbot], [textbox, chatbot]).then(
 
 
 
 
 
 
80
  bot_response, chatbot, chatbot
81
  )
82
 
 
76
  yield history
77
 
78
  # Event handlers
79
+ submit_event = textbox.submit(add_user_message, [textbox, chatbot], [textbox, chatbot]).then(
80
+ bot_response, chatbot, chatbot
81
+ )
82
+
83
+ # Add a "Send" button
84
+ send_button = gr.Button("🚀 Send")
85
+ send_event = send_button.click(add_user_message, [textbox, chatbot], [textbox, chatbot]).then(
86
  bot_response, chatbot, chatbot
87
  )
88