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