try
Browse files
app.py
CHANGED
|
@@ -18,9 +18,12 @@ with gr.Blocks(theme='hmb/amethyst') as demo:
|
|
| 18 |
"""
|
| 19 |
)
|
| 20 |
|
| 21 |
-
chatbot = gr.Chatbot()
|
| 22 |
-
msg = gr.Textbox(placeholder="Say hi to
|
| 23 |
-
send = gr.Button("Send")
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
with open("knowledge.txt", "r", encoding="utf-8") as file:
|
|
|
|
| 18 |
"""
|
| 19 |
)
|
| 20 |
|
| 21 |
+
chatbot = gr.Chatbot()
|
| 22 |
+
msg = gr.Textbox(placeholder="Say hi to WrapIT here!")
|
| 23 |
+
send = gr.Button("Send")
|
| 24 |
+
|
| 25 |
+
msg.submit(respond, [msg, chatbot], [msg, chatbot])
|
| 26 |
+
send.click(respond, [msg, chatbot], [msg, chatbot])
|
| 27 |
|
| 28 |
|
| 29 |
with open("knowledge.txt", "r", encoding="utf-8") as file:
|