trinity-tandon commited on
Commit
6588943
·
verified ·
1 Parent(s): 10e8330

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -16
app.py CHANGED
@@ -82,22 +82,6 @@ def respond(message,history):
82
 
83
  if history:
84
  messages.extend(history)
85
-
86
- with gr.Blocks() as demo:
87
- chatbot = gr.Chatbot()
88
- txt = gr.Textbox(placeholder="Type your message here...")
89
- with gr.Row():
90
- btn1 = gr.Button("Help")
91
- btn2 = gr.Button("Pricing")
92
- btn3 = gr.Button("Contact")
93
-
94
- # Submit typed message
95
- txt.submit(respond, [txt, chatbot], [txt, chatbot])
96
-
97
- # Buttons act like sending a message
98
- btn1.click(respond, [btn1.value, chatbot], [txt, chatbot])
99
- btn2.click(respond, [btn2.value, chatbot], [txt, chatbot])
100
- btn3.click(respond, [btn3.value, chatbot], [txt, chatbot])
101
 
102
  messages.append({"role": "user", "content": message})
103
 
 
82
 
83
  if history:
84
  messages.extend(history)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
  messages.append({"role": "user", "content": message})
87