Update README with better bot usage instructions

This commit is contained in:
Anthony Wang 2022-02-22 22:01:37 -06:00
parent 5e8f3591ca
commit e1e88500eb
Signed by: a
GPG key ID: BC96B00AEC5F2D76

View file

@ -8,9 +8,9 @@ First, install Python dependencies with `pip install psycopg2 torch transformers
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.
Next, train the network with `python train.py`, which may take several hours. It's a lot faster when using a GPU.
Finally, create a Mastodon application for your bot account and run the bot with `python bot.py -i mastodon.instance -t access_token`. Enjoy!
Finally, create a Mastodon application for your bot account and run the bot with `python bot.py -i mastodon.instance -t access_token -n 'Initial text'`. You can create a cron job to run this periodically. Enjoy!
## Resources