bhavya-k commited on
Commit
4e21450
·
verified ·
1 Parent(s): 4e6625d
Files changed (1) hide show
  1. app.py +6 -3
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 WrapIt here!")
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: