Project containing web endpoints and WebRTC examples, moved from modal-examples src.
-
Create a free account at modal.com and install the Modal CLI and set your API key.
-
From this directory, create a virtual environment and install dependencies:
python -m venv .venv .venv\Scripts\activate # Windows pip install -e .
-
WebRTC YOLO (real-time object detection with webcam):
modal serve -m src.webrtc.webrtc_yolo
You can use your own YOLO
.ptmodel via src/webrtc/model_upload/ and theupload_modelentrypoint. -
Other examples under
src/can be run similarly withmodal runormodal serveand the appropriate module path.
src/— Web endpoints and WebRTC apps (FastAPI, Flask, Fasthtml, WebRTC YOLO, etc.).- Root
pyproject.toml— Project metadata and shared tool config (pytest, ruff, mypy); runtime dependencies for Modal are defined inside each app’s image.
MIT (see LICENSE); original examples Copyright (c) 2022 Modal Labs.