import gradio as gr import random def magicEight(message, history): answers = ["the outlook is good", "no, sorry", "maybe", "ask me again"] message = random.choice(answers) return message print("Hello, world!") chatbot = gr.ChatInterface(magicEight, type="messages") chatbot.launch()