import gradio as gr import random def respond(message, history): responses = ["yes", "no"] return responses[random.randint(0,1)] print("Hello World") chatbot = gr.ChatInterface(respond, type = "messages") #chatbot UI chatbot.launch()