davidefiocco/streamlit-fastapi-model-serving
소개
Streamlit과 FastAPI를 사용해 PyTorch 모델을 제공하는 간단한 웹 앱 예제입니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalstreamlit-fastapi-model-serving
Simple example of usage of streamlit and FastAPI for ML model serving described on this blogpost and PyConES 2020 video.
When developing simple APIs that serve machine learning models, it can be useful to have both a backend (with API documentation) for other applications to call and a frontend for users to experiment with the functionality.
In this example, we serve an image semantic segmentation model using FastAPI for the backend service and streamlit for the frontend service. docker compose orchestrates the two services and allows communication between them.
To run the example in a machine running Docker and docker compose, run:
docker compose build
docker compose up
To visit the FastAPI documentation of the resulting service, visit http://localhost:8000/docs with a web browser.
To visit the streamlit UI, visit http://localhost:8501.
Logs can be inspected via:
docker compose logs
Debugging
To modify and debug the app, development in containers can be useful (and kind of fun!).
관련 프로젝트 살펴보기
불러오는 중…