#!/bin/bash
# Download pre-quantized Higgs TTS 3 GGUF models from HuggingFace.
# Usage: ./models.sh

set -eu

REPO="Serveurperso/higgstts.cpp-GGUF"
DIR="models"
mkdir -p "$DIR"

dl() {
    local file="$1"
    if [ -f "$DIR/$file" ]; then
        echo "[OK] $file"
        return
    fi
    echo "[Download] $file"
    hf download --quiet "$REPO" "$file" --local-dir "$DIR"
}

dl "higgs-tts-3-4b-Q8_0.gguf"
