I cannot see any obvious errors in your code.
Did you change anything in the code or your machine setup before the accuracy was reduced?
If not I would guess that your training might be sensitive to the seed and would recommend to play around with some hyperparameters such as the learning rate to stabilize it.