Changes
1 changed files (+6/-0)
-
-
@@ -10,6 +10,12 @@ from torch import nnfrom torch.utils.data import DataLoader # https://closeheat.com/blog/pytorch-lstm-text-generation-tutorial # https://github.com/ChunML/NLP/tree/master/text_generation/ # https://towardsdatascience.com/simple-text-generation-d1c93f43f340 # https://karpathy.github.io/2019/04/25/recipe/ # Fetch messages from database since it's way faster than using the API conn = psycopg2.connect(dbname="mastodon_production") cur = conn.cursor()
-