Spaces:
Build error
Build error
File size: 518 Bytes
8f16eeb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/bash
# 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"
|