mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00
16 lines
455 B
Bash
16 lines
455 B
Bash
![]() |
#!/bin/bash
|
||
|
|
||
|
# Get project root directory
|
||
|
PROJECT_ROOT=$(pwd)
|
||
|
|
||
|
# Set environment variables
|
||
|
export USE_GPU=false
|
||
|
export USE_ONNX=true
|
||
|
export PYTHONPATH=$PROJECT_ROOT:$PROJECT_ROOT/api
|
||
|
export MODEL_DIR=$PROJECT_ROOT/api/src/models
|
||
|
export VOICES_DIR=$PROJECT_ROOT/api/src/voices
|
||
|
export WEB_PLAYER_PATH=$PROJECT_ROOT/web
|
||
|
|
||
|
# Run FastAPI with CPU extras using uv run
|
||
|
uv pip install -e ".[cpu]"
|
||
|
uv run uvicorn api.src.main:app --reload --host 0.0.0.0 --port 8880
|