import gradio as gr import random response_list = ["you're annoying", "I don't care", "what are you yapping about", ""why are you asking a robot", "you're an odd one"] def echo(message, history): random_element = random.choice(response_list) return random_element print("Hello, world!") chatbot = gr.ChatInterface(echo, type="messages", title="Unkind Friend") chatbot.launch()