Spaces:
Running on Zero
Running on Zero
Download tools_api/__init__.py from Rafii/videovoice: direct link, hf CLI and curl.
- Browser
- Download file 770 Bytes
-
https://huggingface.co/spaces/Rafii/videovoice/resolve/main/tools_api/__init__.py
- Command line
-
hf download hf://spaces/Rafii/videovoice/tools_api/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Rafii/videovoice/resolve/main/tools_api/__init__.py
770 Bytes
| """ | |
| tools_api — Standalone endpoints for creator quick tools. | |
| Lives alongside the main pipeline (server.py) but stays decoupled: | |
| - No shared job state, no SSE, no GPU semaphore. | |
| - Reuses step modules as libraries only (no edits to steps/). | |
| - Artifacts written under ARTIFACTS_ROOT/tools/<run_id>/. | |
| Endpoints (mounted by router.router): | |
| POST /api/tools/subtitles — captions (sidecar or burn-in MP4) | |
| POST /api/tools/voice-clone — single-segment TTS with voice clone | |
| POST /api/tools/audio-cleanup — Demucs source separation | |
| POST /api/tools/dramabox — Resemble Dramabox directable speech (dramabox Space only) | |
| GET /api/tools/file/{run}/{f} — download generated artifact | |
| """ | |
| from .router import router | |
| __all__ = ["router"] | |