try
Browse files
app.py
CHANGED
|
@@ -101,13 +101,14 @@ with gr.Blocks(theme='hmb/amethyst') as demo:
|
|
| 101 |
"""
|
| 102 |
)
|
| 103 |
|
| 104 |
-
|
| 105 |
-
|
|
|
|
|
|
|
| 106 |
send = gr.Button("Send")
|
| 107 |
|
| 108 |
msg.submit(respond, [msg, chatbot], [msg, chatbot])
|
| 109 |
send.click(respond, [msg, chatbot], [msg, chatbot])
|
| 110 |
|
| 111 |
-
chatbot = gr.ChatInterface(respond, type='messages', theme='hmb/amethyst')
|
| 112 |
chatbot.launch(debug=True)
|
| 113 |
demo.launch()
|
|
|
|
| 101 |
"""
|
| 102 |
)
|
| 103 |
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
chatbot = gr.ChatInterface(respond, type='messages', theme='hmb/amethyst')
|
| 107 |
+
msg = gr.Textbox(placeholder="Say hi to WrapIT here!")
|
| 108 |
send = gr.Button("Send")
|
| 109 |
|
| 110 |
msg.submit(respond, [msg, chatbot], [msg, chatbot])
|
| 111 |
send.click(respond, [msg, chatbot], [msg, chatbot])
|
| 112 |
|
|
|
|
| 113 |
chatbot.launch(debug=True)
|
| 114 |
demo.launch()
|