api
: receive and response to MLOpsVN's requestsmain.py
: endpoint of the API, executeuvicorn main:app
to run APIproblem
api_models
: Definemodel
classes, to interact with SQL tables.base.py
: defineBase
, a base class for all models to inheritfactory
: create Specific model based on phase_id and prob_id
schema
: define request/response body
- To serve a model, put the model in this folder: flow/api/predict/MLmodels
- E.g.: to save model
sample.model.file
in phase 2, to solve problem 3flow/api/predict/ml_models/phase2/prob3/
- E.g.: to save model