Skip to content

bnutfilloyev/Blink-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

36 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

eye_close_open_detection_api

A short description of the project

Development Requirements

  • Python3.8.2
  • Pip
  • Poetry (Python Package Manager)

M.L Model Environment

MODEL_PATH=./ml/model/
MODEL_NAME=model.pkl

Update /predict

To update your machine learning model, add your load and method change here at predictor.py

Installation

python -m venv venv
source venv/bin/activate
sudo apt install cmake
make install

Runnning Localhost

make run

Deploy app

make deploy

Running Tests

make test

Runnning Easter Egg

make easter

Access Swagger Documentation

http://localhost:8080/docs

Access Redocs Documentation

http://localhost:8080/redoc

Project structure

Files related to application are in the app or tests directories. Application parts are:

app
β”œβ”€β”€ api              - web related stuff.
β”‚Β Β  └── routes       - web routes.
β”œβ”€β”€ core             - application configuration, startup events, logging.
β”œβ”€β”€ models           - pydantic models for this application.
β”œβ”€β”€ services         - logic that is not just crud related.
└── main.py          - FastAPI application creation and configuration.
β”‚
tests                  - pytest