Fediverse ebooks bot using neural networks https://social.exozy.me/@ta180m/107833248217767420
Go to file
2022-02-21 15:20:00 -06:00
.gitignore Initial commit 2022-02-20 18:58:25 -06:00
bot.py Cleanup and reformat with autopep8 2022-02-21 15:03:28 -06:00
data.py Cleanup and reformat with autopep8 2022-02-21 15:03:28 -06:00
dataset.py More cleanup 2022-02-21 15:20:00 -06:00
LICENSE Initial commit 2022-02-20 18:58:25 -06:00
model.py More cleanup 2022-02-21 15:20:00 -06:00
old.py Move old code to old.py 2022-02-21 14:30:16 -06:00
README.md Update README instructions with new data.py flags 2022-02-21 14:29:28 -06:00
test.py More cleanup 2022-02-21 15:20:00 -06:00
train.py More cleanup 2022-02-21 15:20:00 -06:00

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!