import gradio as gr import random #def echo(message, history): # return message #making an echo ting #def yes_or_no(message, history): # return random.choice(["Yes", "No"]) def eight_ball(message, history): return random.choice(["Yes", "No", "It is looking likely", "If the stars align", "Maybe...", "Cannot confirm or deny", "It is 50/50", "That, I cannot answer"]) chatbot = gr.ChatInterface(eight_ball, title="Cassie's 8s", description="Let my magic 8 ball predict the future! Chatbot interacted with at your own risk",type="messages") #defining my chatbot so user can interact chatbot.launch()