GAN Produces the same output for any input at each epoch

I am trying to develop a GAN on the MNIST dataset. But every time I fetch outputs from the generator, all the outputs look exactly the same like this.

Epoch #2:
1_1000

Here is the link to the code:

Is there anything wrong with the code?