TRY
Browse files
app.py
CHANGED
|
@@ -106,7 +106,11 @@ with gr.Blocks(theme='hmb/amethyst') as demo:
|
|
| 106 |
|
| 107 |
|
| 108 |
chatbot = gr.Chatbot()
|
|
|
|
|
|
|
| 109 |
|
|
|
|
|
|
|
| 110 |
|
| 111 |
# chatbot.launch(debug=True)
|
| 112 |
demo.launch()
|
|
|
|
| 106 |
|
| 107 |
|
| 108 |
chatbot = gr.Chatbot()
|
| 109 |
+
msg = gr.Textbox(placeholder="Say hi to WrapIT here!", label="Message")
|
| 110 |
+
send = gr.Button("Send")
|
| 111 |
|
| 112 |
+
msg.submit(respond, [msg, chatbot], [msg, chatbot])
|
| 113 |
+
send.click(respond, [msg, chatbot], [msg, chatbot])
|
| 114 |
|
| 115 |
# chatbot.launch(debug=True)
|
| 116 |
demo.launch()
|