import gradio as gr import random def magic_eight_ball(message, history): responses = ["OMG NO.", "Absolutely not. Nice try, though.", "My crystal ball is buffering...", "The vibes are suspiciously positive.", "Ask again after snacks.", "YASS, Do it."] return random.choice(responses) chatbot = gr.ChatInterface(magic_eight_ball, title="Magic Eight Ball", description="This magic eight ball answers your questions!") chatbot.launch()