Error in mae and mse code block due to forecast code block

forecast code block is producing result in such a way.

which is causing error in the next code block

can anybody help me with this.

Please fix your model. You might want to print(your_model.summary()) to check for output shapes.

I am also getting the same error did you got up to some solution