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