Error in roc(train_label, pred_train, levels = c(0, 1), direction = "<")

Please help me take a look at this code. It ran successfully a few days ago, but now it has an error. How can I change this? thank you

Please translate the error message.