Fediverse ebooks bot using neural networks
https://social.exozy.me/@ta180m/107833248217767420
.gitignore | ||
bot.py | ||
data.py | ||
dataset.py | ||
LICENSE | ||
model.py | ||
old.py | ||
README.md | ||
test.py | ||
train.py |
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!