blob: 045a4b8b42cb3db01d75c81ec2290f19b83b6c88 (
plain)
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. Currently only Mastodon with PostgreSQL is supported, but it should be easy to add support for other platforms and databases.
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!
|