Skip to content

goldenBoard/fastapi-machine-learning-boilerplate

 
 

Repository files navigation

FastAPI + Machine Learning Boilerplate

I learn how to stucture a coding project from zero

What is inside?

Boilerplate to build Machine Learning API with FastAPI

Prerequisites

1. Uvicorn + FastApi
2. Vader

Deployment

Already Deploy to Heroku

How to Run it in Local

pip install -r requirements.txt
uvicorn src.main:app --host=0.0.0.0

or

docker-compose up -d

How to Use the API

Go to here

http://0.0.0.0:8000/docs

or

curl -X POST --header "Accept: application/json" --header "Content-Type: application/json" -d "{
  \"sentence\": \"Everyone is good\"
}" "http://localhost:8000/analyze"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Boilerplate to build Machine Learning API with FastAPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 89.2%
  • Dockerfile 10.8%