import gradio as gr import random def respond_randomly(message, history): message_options = ["yes", "no"] return random.choice(message_options) chatbot = gr.ChatInterface(respond_randomly) chatbot.launch()