Spaces:
Build error
Build error
Update app.py
Browse files1 unmodified line23455678891 unmodified lineimport random
def echo(message, history): choices = ["yes", "no"] choices = ["Without a doubt", "Ask again later","Yes, definitely","Don't count on it"] response = random.choice(choices) return responsechatbot = gr.ChatInterface(echo, type = "messages", examples = [{"who":"user","what":"Hello!"},{"who":"ai","what":"Hi! How are you doing?"}], title = "echo bot")chatbot = gr.ChatInterface(echo, type = "messages", title = "8 ball chatbot")chatbot.launch()app.py+2-2