123456789import gradio as grimport random def echo(message, history): choices = ["yes", "no"] choices.random() return message chatbot = gr.ChatInterface(echo, type = "message")