import random import gradio as gr def random_response(message, history): return random.choice(["Yes", "No", "Maybe", "I don't know", "I'm not sure about that", "Why you ask me that?", "Damn, I'm sorry bro", "Really? Tell me more about it"]) iface = gr.ChatInterface(random_response) iface.launch()