import gradio as gr import random def magic_eight_ball(message, history): responses = ["Yes, definitely!", "No not at all." , "If you put your heart into it! Of course!", "I'm not sure.." , "Ask again later!"] return random.choice(responses) chatbot = gr.ChatInterface(magic_eight_ball) chatbot.launch()