ebooks
Fediverse ebooks bot using LSTM neural networks in PyTorch
Usage
First, make sure you have psycopg2, Mastodon.py, and PyTorch installed.
generate the training data from the Mastodon database using python data.py -d 'dbname=test user=postgres password=secret'.
Next, train the network with python train.py, which may take several hours.
Finally, create a Mastodon application for your bot account and run the bot with python bot.py -i mastodon.instance -t access_token. Enjoy!