Fixed error call in Predict to use len(input) instead of len(pred)