Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|