Error in the code given in the class

I was trying the same code as given and running it on google colab. Its continuously showing error as 3 tensors sent and expected 1. How should I resolve the error?

“ValueError: Layer model_1 expects 2 input(s), but it received 3 input tensors. Inputs received: [<tf.Tensor ‘IteratorGetNext:0’ shape=(None, None) dtype=float32>, <tf.Tensor ‘IteratorGetNext:1’ shape=(None, None) dtype=int32>, <tf.Tensor ‘IteratorGetNext:2’ shape=(None, None) dtype=float32>]”

How to resolve it?