Spaces:
Build error
Build error
Download scripts/monitor-logs.sh from HuuDatLego/Unicode: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/HuuDatLego/Unicode/resolve/main/scripts/monitor-logs.sh
- Command line
-
hf download hf://spaces/HuuDatLego/Unicode/scripts/monitor-logs.sh
-
curl -L -o monitor-logs.sh https://huggingface.co/spaces/HuuDatLego/Unicode/resolve/main/scripts/monitor-logs.sh
518 Bytes
| # Script to monitor Hugging Face Space logs | |
| # Usage: ./monitor-logs.sh [run|build] | |
| TYPE=${1:-run} | |
| if [ "$TYPE" != "run" ] && [ "$TYPE" != "build" ]; then | |
| echo "Usage: $0 [run|build]" | |
| exit 1 | |
| fi | |
| if [ -z "$HF_TOKEN" ]; then | |
| echo "Warning: HF_TOKEN is not set. Authorization may fail if the Space is private." | |
| fi | |
| echo "Streaming $TYPE logs for HuuDatLego/Unicode..." | |
| curl -N \ | |
| -H "Authorization: Bearer $HF_TOKEN" \ | |
| "https://huggingface.co/api/spaces/HuuDatLego/Unicode/logs/$TYPE" | |