From 422536c400f6abe59b1784d921121fd458f82eed Mon Sep 17 00:00:00 2001 From: Fedir Zadniprovskyi Date: Sat, 12 Oct 2024 09:46:15 -0700 Subject: [PATCH] No longer set `WHISPER__INFERENCE_DEVICE` in Dockerfiles (#113) --- Dockerfile.cpu | 1 - Dockerfile.cuda | 1 - 2 files changed, 2 deletions(-) diff --git a/Dockerfile.cpu b/Dockerfile.cpu index acdfe6a2..c3633f15 100644 --- a/Dockerfile.cpu +++ b/Dockerfile.cpu @@ -19,7 +19,6 @@ COPY ./src ./pyproject.toml ./uv.lock ./ RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --frozen --extra ui ENV WHISPER__MODEL=Systran/faster-whisper-small -ENV WHISPER__INFERENCE_DEVICE=cpu ENV UVICORN_HOST=0.0.0.0 ENV UVICORN_PORT=8000 CMD ["uv", "run", "uvicorn", "--factory", "faster_whisper_server.main:create_app"] diff --git a/Dockerfile.cuda b/Dockerfile.cuda index 1a2b5612..b7a2b5be 100644 --- a/Dockerfile.cuda +++ b/Dockerfile.cuda @@ -19,7 +19,6 @@ COPY ./src ./pyproject.toml ./uv.lock ./ RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --frozen --extra ui ENV WHISPER__MODEL=Systran/faster-whisper-large-v3 -ENV WHISPER__INFERENCE_DEVICE=auto ENV UVICORN_HOST=0.0.0.0 ENV UVICORN_PORT=8000 CMD ["uv", "run", "uvicorn", "--factory", "faster_whisper_server.main:create_app"]