Update app.py
Browse files101 unmodified lines102103104105106107108101 unmodified lines#print(response["choices"][0]["message"]["content"].strip())#yield response["choices"][0]["message"]["content"].strip()chatbot = gr.ChatInterface(respond, type='messages', theme='hmb/amethyst', examples = ["Gift ideas for a 13 year old boy who likes sports", "Gift ideas for a teenage girl who likes self care", "Gift ideas for a teenage boy that likes fashion"])chatbot.launch(debug=True)101 unmodified lines102103104105106107108109110111112113114115116117118119120101 unmodified lines#print(response["choices"][0]["message"]["content"].strip())#yield response["choices"][0]["message"]["content"].strip()with gr.Row():btn1 = gr.Button("Help")btn2 = gr.Button("Pricing")btn3 = gr.Button("Contact")# Submit typed messagetxt.submit(respond, [txt, chatbot], [txt, chatbot])# Buttons act like sending a messagebtn1.click(respond, [btn1.value, chatbot], [txt, chatbot])btn2.click(respond, [btn2.value, chatbot], [txt, chatbot])btn3.click(respond, [btn3.value, chatbot], [txt, chatbot])chatbot = gr.ChatInterface(respond, type='messages', theme='hmb/amethyst')chatbot.launch(debug=True)
app.py+13-1