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