Spaces:
Running on Zero
Running on Zero
File size: 770 Bytes
5b7cd5f 12ab2ca 5b7cd5f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """
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"]
|