Add OpenAI-compatible API and Docker deployment

- Add FastAPI-based API in whisperx/api/
- Implement transcription endpoint compatible with OpenAI
- Added Dockerfile and docker-compose.yml for easy deployment
- Updated README with Docker instructions
- Added new script whisperx-serve for running the API
This commit is contained in:
2026-05-13 01:37:47 +03:00
parent d154f4b39b
commit c1fcb3f57c
8 changed files with 238 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
import uvicorn
def serve(host: str = "0.0.0.0", port: int = 8000, workers: int = 1):
"""Run the WhisperX API server"""
uvicorn.run(
"whisperx.api.main:app",
host=host,
port=port,
workers=workers,
reload=False # No reload for production
)
if __name__ == "__main__":
serve()