MH0386 commited on
Commit
8b99b7e
·
verified ·
1 Parent(s): a435779

Upload folder using huggingface_hub

Browse files
Files changed (7) hide show
  1. .gitignore +1 -2
  2. .pre-commit-config.yaml +3 -6
  3. .python-version +1 -1
  4. Dockerfile +4 -3
  5. compose.yaml +16 -0
  6. pyproject.toml +3 -16
  7. uv.lock +0 -0
.gitignore CHANGED
@@ -5,9 +5,8 @@
5
  .venv/
6
  logs/
7
  results/
8
- .trunk
9
- pylock.toml
10
  .github/
 
11
  .idea/
12
  renovate.json
13
  .deepsource.toml
 
5
  .venv/
6
  logs/
7
  results/
 
 
8
  .github/
9
+ .trunk/
10
  .idea/
11
  renovate.json
12
  .deepsource.toml
.pre-commit-config.yaml CHANGED
@@ -12,18 +12,15 @@ repos:
12
  rev: v0.24.1
13
  hooks:
14
  - id: validate-pyproject
15
- - repo: https://github.com/renovatebot/pre-commit-hooks
16
- rev: 41.1.4
17
- hooks:
18
- - id: renovate-config-validator
19
  - repo: https://github.com/astral-sh/uv-pre-commit
20
- rev: 0.7.13
21
  hooks:
22
  - id: uv-sync
23
  - id: uv-lock
 
24
  - repo: https://github.com/astral-sh/ruff-pre-commit
25
  rev: v0.12.0
26
  hooks:
27
  - id: ruff-check
28
- args: [ --fix ]
29
  - id: ruff-format
 
12
  rev: v0.24.1
13
  hooks:
14
  - id: validate-pyproject
 
 
 
 
15
  - repo: https://github.com/astral-sh/uv-pre-commit
16
+ rev: 0.7.14
17
  hooks:
18
  - id: uv-sync
19
  - id: uv-lock
20
+ args: [--offline]
21
  - repo: https://github.com/astral-sh/ruff-pre-commit
22
  rev: v0.12.0
23
  hooks:
24
  - id: ruff-check
25
+ args: [--fix]
26
  - id: ruff-format
.python-version CHANGED
@@ -1 +1 @@
1
- 3.12
 
1
+ 3.13
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.12 AS builder
2
 
3
  SHELL ["/bin/bash", "-c"]
4
 
@@ -6,7 +6,8 @@ ENV UV_LINK_MODE=copy \
6
  UV_COMPILE_BYTECODE=1 \
7
  UV_PYTHON_DOWNLOADS=0
8
 
9
- COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
 
10
 
11
  WORKDIR /app
12
 
@@ -21,7 +22,7 @@ COPY . /app
21
  RUN --mount=type=cache,target=/root/.cache/uv \
22
  uv sync --no-dev --locked --no-editable
23
 
24
- FROM python:3.12-slim AS production
25
 
26
  SHELL ["/bin/bash", "-c"]
27
 
 
1
+ FROM python:3.13@sha256:5f69d22a88dd4cc4ee1576def19aef48c8faa1b566054c44291183831cbad13b AS builder
2
 
3
  SHELL ["/bin/bash", "-c"]
4
 
 
6
  UV_COMPILE_BYTECODE=1 \
7
  UV_PYTHON_DOWNLOADS=0
8
 
9
+ COPY --from=ghcr.io/astral-sh/uv:latest@sha256:6c1e19020ec221986a210027040044a5df8de762eb36d5240e382bc41d7a9043 \
10
+ /uv /uvx /bin/
11
 
12
  WORKDIR /app
13
 
 
22
  RUN --mount=type=cache,target=/root/.cache/uv \
23
  uv sync --no-dev --locked --no-editable
24
 
25
+ FROM python:3.13-slim@sha256:f2fdaec50160418e0c2867ba3e254755edd067171725886d5d303fd7057bbf81 AS production
26
 
27
  SHELL ["/bin/bash", "-c"]
28
 
compose.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ vocalizr:
3
+ image: ghcr.io/alphaspheredotai/vocalizr:latest@sha256:b9c86ec0a342efe58dc6b2b6b42dfaaa4bd5fcfb7895c71a7e0edfd0d7a9a300
4
+ ports:
5
+ - "7860:7860"
6
+ volumes:
7
+ - huggingface:/home/app/.cache/huggingface
8
+ - results:/home/app/results
9
+ - logs:/home/app/logs
10
+ environment:
11
+ - GRADIO_SERVER_PORT=7860
12
+ - GRADIO_SERVER_NAME=0.0.0.0
13
+ volumes:
14
+ huggingface:
15
+ results:
16
+ logs:
pyproject.toml CHANGED
@@ -3,13 +3,8 @@ name = "vocalizr"
3
  version = "0.0.1"
4
  description = "Voice Generator part of the Chatacter Backend"
5
  readme = "README.md"
6
- requires-python = ">=3.12, <3.13"
7
- dependencies = [
8
- "en-core-web-sm",
9
- "gradio[mcp]>=5.32.0",
10
- "kokoro>=0.9.4",
11
- "soundfile>=0.13.1",
12
- ]
13
 
14
  [project.scripts]
15
  vocalizr = "vocalizr.__main__:main"
@@ -19,12 +14,4 @@ requires = ["uv_build"]
19
  build-backend = "uv_build"
20
 
21
  [dependency-groups]
22
- dev = [
23
- "watchfiles>=1.0.5",
24
- "ruff>=0.11.12",
25
- "huggingface-hub[cli,hf-transfer]>=0.32.3",
26
- "ty>=0.0.1a6",
27
- ]
28
-
29
- [tool.uv.sources]
30
- en-core-web-sm = { url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl" }
 
3
  version = "0.0.1"
4
  description = "Voice Generator part of the Chatacter Backend"
5
  readme = "README.md"
6
+ requires-python = ">=3.13, <3.14"
7
+ dependencies = ["gradio[mcp]>=5.32.0", "kokoro>=0.9.4", "soundfile>=0.13.1"]
 
 
 
 
 
8
 
9
  [project.scripts]
10
  vocalizr = "vocalizr.__main__:main"
 
14
  build-backend = "uv_build"
15
 
16
  [dependency-groups]
17
+ dev = ["watchfiles>=1.0.5", "ruff>=0.11.12", "ty>=0.0.1a10"]
 
 
 
 
 
 
 
 
uv.lock CHANGED
The diff for this file is too large to render. See raw diff