Just returning predicting number
$ git clone https://github.com/Ant3ng/first-FastAPI.git
$ cd first-FastAPI
$ pipenv sync
if you don't have pipenv osx:
brew install pipenv
$ pipenv run uvicorn main:app --reload
# following should be done in different terminal
$ curl http://127.0.0.1:8000/predict/
go to http://127.0.0.1:8000/docs or http://127.0.0.1:8000/redoc .
-
dataset
- digit_2.png: for inference
- mnist: for training
-
main.py: make prediction and return into endpoint
-
training.ipynb: training based on mnist dataset