I was going through this Tensorflow tutorial of text generation. After completing the training on a corpus, they use the trained model in a prediction loop to generate text