import gradio as gr import random def random_response(message, history): response_options = ["yes", "no", "maybe", "try again"] return random.choice(response_options) chatbot = gr.ChatInterface( random_response, title = "Magic Eight Ball", description = "I can predict your future!" ) chatbot.launch()