tonyassi commited on
Commit
73d4c8c
1 Parent(s): 7611cb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -14,4 +14,10 @@ with gr.Blocks() as demo:
14
  textbox1 = gr.Textbox()
15
  textbox2 = gr.Textbox()
16
 
 
 
 
 
 
 
17
  demo.launch()
 
14
  textbox1 = gr.Textbox()
15
  textbox2 = gr.Textbox()
16
 
17
+ def echo(message, chat_history):
18
+ return '', 'echo ' + message
19
+
20
+ textbox1.submit(echo, [textbox1, chatbot1], [textbox1, chatbot1])
21
+ textbox2.submit(echo, [textbox2, chatbot2], [textbox2, chatbot2])
22
+
23
  demo.launch()