2 unmodified lines345667892 unmodified lines def echo(message, history): choices = ["yes", "no"] yes_or_no = choices[random.random()] yes_or_no = int(choices[random.random()]) return yes_or_no chatbot = gr.ChatInterface(echo, type = "message")