After adding more datat to /classify/function/data/names
, you can retrain the model using
cd classify/
python train.py
cd -
faas-cli template pull https://github.com/LucasRoesler/pydatascience-template.git
faas-cli build classify --tag sha
docker run -it -p 8080:8080 theaxer/classify:latest
curl -X POST http://localhost:8080 -d "Bob"
conda env create -f devenvironment.yml
faas-cli deploy -f ./stack.yml --gateway=<GATEWAY> --tag sha