import gradio as gr import random def chance(message, history): response_options["yes", "no"] return random.choice(response_options) chatbot = gr.ChatInterface(chance, title = "Yes or No Chatbot") chatbot.launch()