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