import gradio as gr import random # import lines go at the top, any libraries I need to import go above ^^ # def echo(message, history): # return message # def yes_or_no(message, history): # return random.choice(['Yes', 'No']) def magic_ball(message, history): return random.choice(['Yes', 'No', 'Try Again', 'Maybe', 'In The Future', 'Absolutely']) print("Hello World!") chatbot = gr.ChatInterface(magic_ball, type="messages") chatbot.launch()