Spaces:
Build error
Build error
Update app.py
Browse files1 unmodified line234567891 unmodified lineimport randomdef echo(message, history):choices = ["yes", "no"]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.launch()1 unmodified line234567891 unmodified lineimport randomdef echo(message, history):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", title = "8 ball chatbot")chatbot.launch()
app.py+2-2