import gradio as gr import random def respond_yes_no_randomly(message, history): responses = ["Yes", "No"] return random.choice(responses) chatbot = gr.ChatInterface(respond_yes_no_randomly) chatbot.launch()