import gradio as gr import random def response_system(message, history): responses = ["yes", "no", "maybe", "I don't think so", "I think so", "What kind of a question is that?", "Are you sure you want to know?", "I'm not telling XD", "You ask too many questions", "That depends on you", "Without a doubt"] return random.choice(responses) print("Hello, world!") chatbot = gr.ChatInterface(response_system, type = "messages", title = "8 Ball") #chatbot UI = conversation history and user input chatbot.launch() #displays the chatbot