Spaces:
Sleeping
Sleeping
added more responses and changed the title
Browse files1 unmodified line2345678910111 unmodified lineimport randomdef echo(message, history):choices = ["yes", "no"]new = random.choice(choices)return newchatbot = gr.ChatInterface(echo, type = "messages", title = "KWK Chatbot")chatbot.launch()1 unmodified line2345678910111 unmodified lineimport randomdef echo(message, history):choices = ["yes", "no", "better not tell you now", "without a doubt", "very doubtful", "cannot predict now", "you may rely on it", "don't count on it", "reply hazy, try again"]new = random.choice(choices)return newchatbot = gr.ChatInterface(echo, type = "messages", title = "Magic 8 Ball")chatbot.launch()
app.py+2-2