ebooks

Fediverse ebooks bot using neural networks

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