Serve Hugging face models with FastAPI, the Python's fastest REST API framework.
|
2 years ago | |
---|---|---|
assets | 2 years ago | |
hfapi | 2 years ago | |
mlmodels | 2 years ago | |
.gitignore | 2 years ago | |
Dockerfile | 2 years ago | |
Makefile | 2 years ago | |
README.md | 2 years ago | |
docker-compose.yml | 2 years ago | |
requirements.txt | 2 years ago | |
setup.cfg | 2 years ago | |
setup.py | 2 years ago | |
tox.ini | 2 years ago |
🤗 Huggingface + ⚡ FastAPI = ❤️ Awesomeness. Structure Deep Learning models serving REST API with FastAPI
Inspired by and bootstraped from https://github.com/Proteusiq/huggingfastapi/
Serve Hugging face models with FastAPI, the Python's fastest REST API framework.
The minimalistic project structure for development and production.
Installation and setup instructions to run the development mode model and serve a local RESTful API endpoint.
Files related to application are in the hfapi
or tests
directories.
Application parts are:
hfapi
├── api - Main API.
│ └── routes - Web routes.
├── core - Application configuration, startup events, logging.
├── models - Pydantic models for api.
├── services - NLP logics.
└── main.py - FastAPI application creation and configuration.
│
tests - Codes without tests is an illusion