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