-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
# 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!