Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,9 @@ with gr.Blocks() as demo:
|
|
15 |
textbox2 = gr.Textbox()
|
16 |
|
17 |
def echo(message, chat_history):
|
18 |
-
|
|
|
|
|
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])
|