import gradio as gr import random def random_message(message, history): choices = ["yes", "no"] chat_answer = random.choice(choices) return chat_answer print("Hello, World!") chatbot = gr.ChatInterface(random_message, type = "messages") chatbot.launch()