Spaces:
Sleeping

Eric Dyke commited on
Commit
0de3c15
·
1 Parent(s): 16a46a6

FastAPI ML API for Spaceship Titanic and Digit Recognition

Browse files

- FastAPI app with modular routers for spaceship survival prediction and digit recognition
- Model loading for PyTorch and scikit-learn/xgboost/lightgbm models
- In-memory and file-based API testing with pytest and TestClient
- Pre-commit hook for Black formatting
- GitHub Actions workflow for linting
- Documentation and example test data include

18 files changed +783
Files changed (18)
.github/workflows/python-lint.ymlAdded+31
.gitignoreAdded+131
.pre-commit-config.yamlAdded+8
DockerfileAdded+17
app.pyAdded+44
docs/documentation.mdAdded+167
ml/common/model_loader.pyAdded+37
ml/digits/mnist_model.pyAdded+45
ml/spaceship/spaceship_transformers.pyAdded+158
models/digit_recognizer/mnist_checkpoint.pthAdded+3
models/spaceship/hgb_tuned.pklAdded+3
models/spaceship/lgbm_tuned.pklAdded+3
models/spaceship/xgb_tuned.pklAdded+3
requirements.txtAdded+13
routers/digits.pyAdded+38
routers/spaceship.pyAdded+40
static/favicon.icoAdded
tests/test_api_pytest.pyAdded+42