Skip to content

Setup uv

remsky edited this page Feb 2, 2025 · 4 revisions

Using UV to run directly

  1. Install prerequisites:
    • Install astral-uv

    • You may also have to install espeak on your system manually

    • Clone the repository:

      git clone https://github.com/remsky/Kokoro-FastAPI.git
      cd Kokoro-FastAPI
      
      # if you are missing any models, run:
      # python ../scripts/download_model.py --type pth  # for GPU
      # python ../scripts/download_model.py --type onnx # for CPU

      Start directly via UV (with hot-reload)

      ./start-cpu.sh OR
      ./start-gpu.sh