NLP C3_W3 UNQ_C4: Error with evaluate_prediction

I am getting this error when running cell UNQ_C4. Not sure how to debug this error. Can someone please help?

If you are trying to get the size of a string then ommit the shape. The shape is a property of numpy lists by the way, giving you its dimensions.

Not sure if this is where your problem is but the outputs equation assumes that predictions are already available to you in the form of pred in the argument.

But you still need to do something to pred to make it comparable to ‘labels’ which is the correct labels. Step 2 in More Detailed Instructions is relevant here.