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