git clone https://github.com/lolney/messenger-gpt2-chatbot.git
cd server
virtualenv -p python3.7 server
source server/bin/activate
pip install -r requirements.txt
(cd server && python -m pytest)
- Download your Facebook data
- Clone Chatistics
- Follow the instructions in the Chatistics rep to parse the Messenger data
python export.py --format json
python parse_input.py
python create_model.py
python app.py
Instructions from here: https://github.com/minimaxir/gpt-2-cloud-run
sudo docker build . -t messenger-gpt2
sudo docker tag messenger-gpt2 gcr.io/euphoric-coral-257209/messenger-gpt2
sudo docker push gcr.io/euphoric-coral-257209/messenger-gpt2
Go to https://console.cloud.google.com/run and set Memory Allocated to 2 GB and Maximum Requests Per Container to 1!