techfreakworm commited on
Commit
6654cfd
·
unverified ·
1 Parent(s): 599f87d

fix(setup): replace `|| true` with explicit existence check for refresh_models.py

Browse files
Files changed (1) hide show
  1. setup.sh +5 -1
setup.sh CHANGED
@@ -39,7 +39,11 @@ echo "▶ Installing AIO app dependencies"
39
  pip install -r requirements.txt
40
 
41
  echo "▶ Symlinking models from HF cache"
42
- python tools/refresh_models.py || true # ok to fail before tools/ exists
 
 
 
 
43
 
44
  echo
45
  echo "✓ Setup complete."
 
39
  pip install -r requirements.txt
40
 
41
  echo "▶ Symlinking models from HF cache"
42
+ if [[ -f tools/refresh_models.py ]]; then
43
+ python tools/refresh_models.py
44
+ else
45
+ echo " (tools/refresh_models.py not yet present — skipping; will be added in Task 16)"
46
+ fi
47
 
48
  echo
49
  echo "✓ Setup complete."