import gradio as gr import random def echo(message, history): return message def respond_yes_no_random(message, history): responses=["Yes", "No"] return random.choice(responses) def magic8(message, history): responses=["Yes", "No", "Maybe", "Without a doubt", "Most likely", "Try again", "Not sure","Very doubtful"] return random.choice(responses) chatbot = gr.ChatInterface(magic8, type= "messages", title = "8 ball", description = "its random omg") chatbot.launch()