C5_W3_A1_Ex2 Assertion Error Model Summary

I am getting an assertion error as: [‘Dense’, (None, 11), 715, ‘softmax’] is repeating itself 10 times in my model summary.

10 is the number of times ‘out’ is appended to ‘outputs’ but I cannot wrap my head around a solution for the error.

You may have a whitespace or indentation error around “Step 3” in the modelf() function.
So check things like:
The “model = Model(…)” statement should be outside the for-loop.

Also, did you add any code that uses the ‘m’ variable?