Spaces:
Sleeping
Sleeping
Download iris/api/dependencies.py from NextNeural/IRIS: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/spaces/NextNeural/IRIS/resolve/main/iris/api/dependencies.py
- Command line
-
hf download hf://spaces/NextNeural/IRIS/iris/api/dependencies.py
-
curl -L -o dependencies.py https://huggingface.co/spaces/NextNeural/IRIS/resolve/main/iris/api/dependencies.py
614 Bytes
| from __future__ import annotations | |
| from fastapi import Request | |
| from iris.config import Settings | |
| from iris.pipeline.orchestrator import VideoProcessor | |
| from iris.storage.database import Database | |
| from iris.storage.files import FileStore | |
| def get_settings(request: Request) -> Settings: | |
| return request.app.state.settings | |
| def get_database(request: Request) -> Database: | |
| return request.app.state.database | |
| def get_file_store(request: Request) -> FileStore: | |
| return request.app.state.file_store | |
| def get_video_processor(request: Request) -> VideoProcessor: | |
| return request.app.state.video_processor | |