Skip to content

shashank3110/Udacity_MLOPS_Nanodegree

 
 

Repository files navigation

Project: Train a model and deploy as an API via FastAPI on Heroku

(This project is a part of my Udacity Nanodegree course project: The skeleton for the project is in this repo. :
https://github.com/udacity/nd0821-c3-starter-code)

  • This project has CI / CD enabled via GitHub Actions and Heroku

Environment: python 3.9

FastAPI

Local API

  • Start and run FastAPI app and send get/post requests: main app script: starter/main.py
cd starter
python uvicorn main:app --reload

To send a POST request open another command window: starter/infer_post_request.py

cd starter
python infer_post_request.py

Live API

To send a POST request to live API: infer_live_post_request.py

python infer_live_post_request.py 

Training and Data slicing:

cd starter
python starter/train_model.py
python starter/train_model_on_slices.py 

Data Preprocessing and Model implementation

Dataset, saved models, logs, screenshots:

Tests:

cd starter
pytest

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 68.7%
  • Jupyter Notebook 31.1%
  • Procfile 0.2%