You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
xenua a9ca15c52d
chore: add readme
2 years ago
src initial commit 2 years ago
.gitignore initial commit 2 years ago
LICENSE.md initial commit 2 years ago
README.md chore: add readme 2 years ago
config.py initial commit 2 years ago
requirements.txt initial commit 2 years ago

README.md

gpt2-fedibooks

... is (or will be) a gpt2-based bot based on someone's mastodon posts. WIP.

getting started

(these steps assume you have python installed. this has only been tested with python 3.10, but it should work with >=3.8)

grab an archive of your fedi data. in the mastodon web interface this is under settings / import and export / data export. unzip the file, locate outbox.json

create a virtual environment, activate it, and install requirements

python -m venv env
source env/bin/activate
pip install -r requirements.txt

(optionally) edit the config.py file in the root of this repo

run the init command:

python src/fedibooks.py init /path/to/outbox.json

this will take a while, depends on your settings; assuming default settings it should take an hour or two on modern cpus

then you can generate:

python src/fedibooks.py generate

this will print a generated text snippet to stdout, which you can then pipe into a piece of software that posts it to fedi, or you could contribute to this project and implement posting directly

enjoy and have fun :D