diff --git a/start-cpu.ps1 b/start-cpu.ps1 index a810841..5a5df26 100644 --- a/start-cpu.ps1 +++ b/start-cpu.ps1 @@ -8,9 +8,6 @@ $Env:MODEL_DIR="src/models" $Env:VOICES_DIR="src/voices/v1_0" $Env:WEB_PLAYER_PATH="$Env:PROJECT_ROOT/web" -uv pip install wheel setuptools ninja typing_extensions>=4.10.0 fastapi uvicorn - -uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 uv pip install -e ".[cpu]" - -uv run --no-sync uvicorn api.src.main:app --host 0.0.0.0 --port 8880 +uv run --no-sync python docker/scripts/download_model.py --output api/src/models/v1_0 +uv run --no-sync uvicorn api.src.main:app --host 0.0.0.0 --port 8880 \ No newline at end of file diff --git a/start-cpu.sh b/start-cpu.sh index 651f645..4438ff9 100755 --- a/start-cpu.sh +++ b/start-cpu.sh @@ -14,4 +14,5 @@ export WEB_PLAYER_PATH=$PROJECT_ROOT/web # Run FastAPI with CPU extras using uv run # Note: espeak may still require manual installation, uv pip install -e ".[cpu]" +uv run --no-sync python docker/scripts/download_model.py --output api/src/models/v1_0 uv run --no-sync uvicorn api.src.main:app --host 0.0.0.0 --port 8880 diff --git a/start-gpu.ps1 b/start-gpu.ps1 index 6a2a111..7b161a5 100644 --- a/start-gpu.ps1 +++ b/start-gpu.ps1 @@ -8,10 +8,6 @@ $Env:MODEL_DIR="src/models" $Env:VOICES_DIR="src/voices/v1_0" $Env:WEB_PLAYER_PATH="$Env:PROJECT_ROOT/web" -uv pip install wheel setuptools ninja typing_extensions>=4.10.0 fastapi uvicorn - -uv pip install torch==2.6.0+cu124 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 uv pip install -e ".[gpu]" - - -uv run --no-sync uvicorn api.src.main:app --host 0.0.0.0 --port 8880 +uv run --no-sync python docker/scripts/download_model.py --output api/src/models/v1_0 +uv run --no-sync uvicorn api.src.main:app --host 0.0.0.0 --port 8880 \ No newline at end of file diff --git a/start-gpu.sh b/start-gpu.sh index b079978..a3a2e68 100755 --- a/start-gpu.sh +++ b/start-gpu.sh @@ -12,5 +12,7 @@ export VOICES_DIR=src/voices/v1_0 export WEB_PLAYER_PATH=$PROJECT_ROOT/web # Run FastAPI with GPU extras using uv run +# Note: espeak may still require manual installation, uv pip install -e ".[gpu]" +uv run --no-sync python docker/scripts/download_model.py --output api/src/models/v1_0 uv run --no-sync uvicorn api.src.main:app --host 0.0.0.0 --port 8880