Local DE Coach v0.4.6 — Fix fetch_models.sh + quiet setup output
Two fixes
1. scripts/fetch_models.sh bash syntax error
Your setup completed successfully through the frontend build, then failed at Step 7 (models) with:
scripts/fetch_models.sh: line 115: local: can only be used in a function
The local keyword was used at top-level (not inside a function), which bash rejects. Rewrote the file to use a simpler download approach via transformers + huggingface_hub (which uses hf_xet parallel chunks automatically — no need for manual aria2c per-file download).
2. setup.sh was too verbose
Your log showed 60+ lines of Requirement already satisfied: ... spam. Rewrote setup.sh to be quiet:
- Already-installed items show a single
✓line - pip install uses
--quiet+grep -v 'Requirement already satisfied'— only shows actual downloads - npm install output filtered to show only build results (
built in/Wrote site/error) - Each step shows
Step N/7:for clear progress
Example output now:
[*] Step 1/7: System dependencies
[✓] All system deps already installed
[*] Step 2/7: Python virtualenv
[✓] Virtualenv already exists
[*] Step 3/7: pip / wheel / setuptools
[✓] pip ready
[*] Step 4/7: torch CPU-only wheel
[✓] torch 2.13.0+cpu already installed (~200 MB saved)
[*] Step 5/7: Python backend dependencies
[✓] Python deps installed / verified
[*] Step 6/7: Frontend (npm + SvelteKit build)
[✓] node_modules already exists — skipping npm install
[*] Syncing SvelteKit + building static frontend (~10s)...
✓ built in 11.06s
[✓] Frontend built at frontend/build/
[*] Step 7/7: ASR models (Wav2Vec2 + Whisper, ~435 MB total)
[✓] All models already cached (~435 MB saved)
Also: install.sh is now a thin wrapper
There's now only ONE real setup script: setup.sh. The old install.sh is kept for backward compatibility but just calls setup.sh:
#!/usr/bin/env bash
exec "$(dirname "$0")/setup.sh" "$@"How to upgrade
cd /home/bif/Desktop/Lab/Local_DE_Coach
git pull origin main
./setup.sh
./start.shFull changelog: see git log v0.4.5..v0.4.6