Download scripts/refresh_space.sh from StarAtNyte1/beam-boot: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/StarAtNyte1/beam-boot/resolve/main/scripts/refresh_space.sh
- Command line
-
hf download hf://StarAtNyte1/beam-boot/scripts/refresh_space.sh
-
curl -L -o refresh_space.sh https://huggingface.co/StarAtNyte1/beam-boot/resolve/main/scripts/refresh_space.sh
584 Bytes
| # Rebuild Super Beam page data from the in-weights replay and republish the Space. | |
| # Run hourly by the superbeam-refresh systemd user timer; stops the timer once the | |
| # superbeam-inweights job has finished and a final publish is done. | |
| set -euo pipefail | |
| cd "$(dirname "$0")/.." | |
| .venv/bin/python scripts/build_superbeam_page_data.py | |
| .venv/bin/python scripts/build_token_trace.py | |
| OMP_NUM_THREADS=1 .venv/bin/modal run scripts/publish_space.py | |
| if ! systemctl --user is-active --quiet superbeam-inweights; then | |
| systemctl --user stop superbeam-refresh.timer || true | |
| fi | |