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