From 0c9811b0517d8b59001633acb07e0e8fa8ec1053 Mon Sep 17 00:00:00 2001 From: Fireblade Date: Fri, 20 Jun 2025 18:09:33 -0400 Subject: [PATCH] Fix install scripts --- start-cpu.ps1 | 1 + start-cpu.sh | 1 + start-gpu.ps1 | 1 + start-gpu.sh | 1 + start-gpu_mac.sh | 1 + 5 files changed, 5 insertions(+) diff --git a/start-cpu.ps1 b/start-cpu.ps1 index 5a5df26..4e37fb1 100644 --- a/start-cpu.ps1 +++ b/start-cpu.ps1 @@ -8,6 +8,7 @@ $Env:MODEL_DIR="src/models" $Env:VOICES_DIR="src/voices/v1_0" $Env:WEB_PLAYER_PATH="$Env:PROJECT_ROOT/web" +uv venv --allow-existing 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 \ No newline at end of file diff --git a/start-cpu.sh b/start-cpu.sh index 98fae6d..8996655 100755 --- a/start-cpu.sh +++ b/start-cpu.sh @@ -15,6 +15,7 @@ export ESPEAK_DATA_PATH=/usr/lib/x86_64-linux-gnu/espeak-ng-data # Run FastAPI with CPU extras using uv run # Note: espeak may still require manual installation, +uv venv --allow-existing uv pip install -e ".[cpu]" uv run --no-sync python docker/scripts/download_model.py --output api/src/models/v1_0 diff --git a/start-gpu.ps1 b/start-gpu.ps1 index 7b161a5..c79e509 100644 --- a/start-gpu.ps1 +++ b/start-gpu.ps1 @@ -8,6 +8,7 @@ $Env:MODEL_DIR="src/models" $Env:VOICES_DIR="src/voices/v1_0" $Env:WEB_PLAYER_PATH="$Env:PROJECT_ROOT/web" +uv venv --allow-existing 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 \ No newline at end of file diff --git a/start-gpu.sh b/start-gpu.sh index a3a2e68..b002807 100755 --- a/start-gpu.sh +++ b/start-gpu.sh @@ -13,6 +13,7 @@ export WEB_PLAYER_PATH=$PROJECT_ROOT/web # Run FastAPI with GPU extras using uv run # Note: espeak may still require manual installation, +uv venv --allow-existing 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 diff --git a/start-gpu_mac.sh b/start-gpu_mac.sh index 9d00063..a628b80 100755 --- a/start-gpu_mac.sh +++ b/start-gpu_mac.sh @@ -16,6 +16,7 @@ export DEVICE_TYPE=mps export PYTORCH_ENABLE_MPS_FALLBACK=1 # Run FastAPI with GPU extras using uv run +uv venv --allow-existing uv pip install -e . 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