https://github.com/iobruno/fastapi-tfserve
Tensorflow-based Object Detection on the CIFAR-10 dataset, served with FastAPI
https://github.com/iobruno/fastapi-tfserve
cifar-10 cifar-10-classifier fastapi tensorflow2
Last synced: 6 months ago
JSON representation
Tensorflow-based Object Detection on the CIFAR-10 dataset, served with FastAPI
- Host: GitHub
- URL: https://github.com/iobruno/fastapi-tfserve
- Owner: iobruno
- License: cc-by-sa-4.0
- Created: 2022-06-04T03:43:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-09T16:47:26.000Z (8 months ago)
- Last Synced: 2025-04-01T21:05:44.864Z (6 months ago)
- Topics: cifar-10, cifar-10-classifier, fastapi, tensorflow2
- Language: Python
- Homepage:
- Size: 12.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastAPI TensorFlow Serving

[](https://www.tensorflow.org/guide)
[](https://fastapi.tiangolo.com/tutorial/)
[](https://docs.astral.sh/uv/getting-started/installation/)
[](https://docs.docker.com/get-docker/)
GitHub project for Tensorflow-based Object Detection on the CIFAR-10 dataset, served with FastAPI.
## Getting Started
**1.** Install dependencies from pyproject.toml and activate the created virtualenv:
```shell
uv sync && source .venv/bin/activate
```**2.** Start the app with `gunicorn` with:
```shell
make run
```**3.** Access the Swagger UI at:
```shell
open http://localhost:8080
```## Containerization
**1.** Build the Docker Image with:
```shell
make docker-image
```**2.** Spin up the container with:
```shell
make docker-run
```**3.** Access the Swagger UI at:
```
open http://localhost:8000
```## TODO's:
- [x] PEP-517: Packaging and dependency management with `uv`
- [x] Code format/lint with Ruff
- [x] Run on Docker
- [ ] Serve it with Streamlit
- [ ] GitHub CI