Domain-specific content summarization API.
npm run preinstall
--or--
virtualenv .
source bin/activate
pip install -r requirements.txt
python -c 'import nltk; nltk.download("punkt")'
Download models manually (Optional)
# Approximately 3gb download
mkdir models
wget -P ./models http://www.cs.toronto.edu/~rkiros/models/dictionary.txt
npm start
--or--
python main.py
Execute the following command to run the unit test package for the project.
npm test
--or--
python -m unittest -v test # Verbose
POST /digest
curl --header "Content-Type: application/json" \
--request POST \
-d @test/post_data.json \
http://0.0.0.0:5900/api/digest
docker build -t breef:latest .
docker-compose up
Removes volumes when brought down
docker-compose down --volumes
gcloud auth configure-docker
yarn run deploy
docker run gcr.io/breef-247014/breef-image
docker logs -f breef_app
docker exec -t -i breef <COMMAND>
docker exec -t -i breef_app ls models
sudo mkdir -m 777 -p /mnt/models && gcsfuse --foreground -o nonempty breef-models /mnt/models