Download scripts/dl_queue.sh from ehabnegm/s2pro-egy: direct link, hf CLI and curl.
- Browser
- Download file 675 Bytes
-
https://huggingface.co/ehabnegm/s2pro-egy/resolve/main/scripts/dl_queue.sh
- Command line
-
hf download hf://ehabnegm/s2pro-egy/scripts/dl_queue.sh
-
curl -L -o dl_queue.sh https://huggingface.co/ehabnegm/s2pro-egy/resolve/main/scripts/dl_queue.sh
675 Bytes
| export PATH="$HOME/.local/bin:$PATH" | |
| export HF_TOKEN=HF_TOKEN_PLACEHOLDER | |
| # wait for any running noselleel download to finish | |
| while pgrep -f "hf download ehabnegm/noselleel" >/dev/null; do sleep 30; done | |
| for D in noselleel-egyptian-tts eqkawkab-egyptian-tts moustafa-sadek-egyptian-tts mosaifside-egyptian-tts; do | |
| for attempt in 1 2 3 4 5 6 7 8; do | |
| echo "=== $D attempt $attempt $(date) ===" | |
| if hf download ehabnegm/$D --repo-type dataset --local-dir /opt/work/data_raw/$D --max-workers 4; then | |
| echo "=== $D DONE ==="; break | |
| fi | |
| echo "=== $D failed, backoff $((attempt*60))s ===" | |
| sleep $((attempt*60)) | |
| done | |
| done | |
| echo "ALL_QUEUE_DONE" | |