Ant3ng / first-FastAPI

Just returning predicting number

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

first-FastAPI

Just returning predicting number

Setup

$ git clone https://github.com/Ant3ng/first-FastAPI.git
$ cd first-FastAPI
$ pipenv sync

if you don't have pipenv osx:

brew install pipenv

how to run server and see results

$ pipenv run uvicorn main:app --reload

# following should be done in different terminal
$ curl http://127.0.0.1:8000/predict/

endpoint

go to http://127.0.0.1:8000/docs or http://127.0.0.1:8000/redoc .

files for understanding

  • dataset

    • digit_2.png: for inference
    • mnist: for training
  • main.py: make prediction and return into endpoint

  • training.ipynb: training based on mnist dataset

About

Just returning predicting number


Languages

Language:Jupyter Notebook 87.6%Language:Python 12.4%