This repository is an example to see how serve a machine learning model with TensorFlow and NestJS.
$ yarn install --frozen-lockfile
$ yarn lya:install-deps
$ yarn lya:train
The model will be saved in ./lya-model/
directory.
$ yarn start:dev
$ yarn build
$ yarn start:prod
$ curl http://localhost:3000/lya/classNames
$ curl -X POST -F "image=@./path/to/image.jpg" http://localhost:3000/lya/predict