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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -15,7 +15,9 @@ with gr.Blocks() as demo:
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])
 
15
  textbox2 = gr.Textbox()
16
 
17
  def echo(message, chat_history):
18
+ bot_message = 'echo ' + message
19
+ chat_history.append((message, bot_message))
20
+ return '', chat_history
21
 
22
  textbox1.submit(echo, [textbox1, chatbot1], [textbox1, chatbot1])
23
  textbox2.submit(echo, [textbox2, chatbot2], [textbox2, chatbot2])