yasserrmd commited on
Commit
a5cedc8
·
verified ·
1 Parent(s): 76e8733

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -50,6 +50,7 @@ with gr.Blocks() as chat_interface:
50
  return chat_with_buddy(chat_history, user_message), ""
51
 
52
  # Link the submit button to the function
 
53
  submit_button.click(submit, inputs=[message, chatbot], outputs=[chatbot, message])
54
 
55
  # Launch the chat interface
 
50
  return chat_with_buddy(chat_history, user_message), ""
51
 
52
  # Link the submit button to the function
53
+ message.submit(submit, inputs=[message, chatbot], outputs=[chatbot, message])
54
  submit_button.click(submit, inputs=[message, chatbot], outputs=[chatbot, message])
55
 
56
  # Launch the chat interface