import gradio as gr import random def magic_8_ball(message, history): return random.choice(['Yes', 'No','Maybe','Probably not..','For sure!' ]) #def echo(message, history): # return message print("Hello!") chatbot = gr.ChatInterface(yes_or_no, type='messages') chatbot.launch()