Skip to content

Commit

Permalink
deps: move ui packages to a separate group
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedir Zadniprovskyi committed Sep 30, 2024
1 parent 6c6f1c6 commit 93b95ca
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 66 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-install-project
COPY ./src ./pyproject.toml ./uv.lock ./
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen
uv sync --frozen --extra ui
ENV WHISPER__MODEL=Systran/faster-whisper-small
ENV WHISPER__INFERENCE_DEVICE=cpu
ENV UVICORN_HOST=0.0.0.0
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.cuda
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-install-project
COPY ./src ./pyproject.toml ./uv.lock ./
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen
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
Expand Down
13 changes: 9 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ requires-python = ">=3.12,<3.13"
dependencies = [
"fastapi>=0.115.0",
"faster-whisper>=1.0.3",
"gradio>=4.44.0",
"httpx-sse>=0.4.0",
"httpx>=0.27.2",
"huggingface-hub>=0.25.1",
"numpy>=2.1.1",
"openai>=1.48.0",
"pydantic-settings>=2.5.2",
"pydantic>=2.9.0",
"python-multipart>=0.0.10",
Expand All @@ -26,13 +22,22 @@ client = [
dev = [
"anyio>=4.4.0",
"basedpyright>=1.18.0",
"httpx>=0.27.2",
"httpx-sse>=0.4.0",
"openai>=1.48.0",
"pytest-asyncio>=0.24.0",
"pytest-xdist>=3.6.1",
"pytest>=8.3.3",
"ruff>=0.5.3",
"srt>=3.5.3",
"webvtt-py>=0.5.1",
]
ui = [
"gradio>=4.44.0",
"httpx>=0.27.2",
"httpx-sse>=0.4.0",
"openai>=1.48.0",
]

[build-system]
requires = ["hatchling"]
Expand Down
Loading

0 comments on commit 93b95ca

Please sign in to comment.