Spaces:
Sleeping
Sleeping
Update app.py
Browse files1 unmodified line2345678910111 unmodified lineimport randomdef echo(message, history):choices = ("yes", "no")yes_or_no = random.choice(choices)return yes_or_nochatbot = gr.ChatInterface(echo, type = "message")chatbot.launch()1 unmodified line2345678910111 unmodified lineimport randomdef echo(message, history):choices = ["yes", "no"]yes_or_no = random.choice(choices)return yes_or_nochatbot = gr.ChatInterface(echo, type = "messages")chatbot.launch()
app.py+2-2