Spaces:
Paused
Paused
|
Download docs/REMOTE_LOGS.md from nikhtu10/HuggingRun: direct link, hf CLI and curl.
- Browser
- Download file 806 Bytes
-
https://huggingface.co/spaces/nikhtu10/HuggingRun/resolve/main/docs/REMOTE_LOGS.md
- Command line
-
hf download hf://spaces/nikhtu10/HuggingRun/docs/REMOTE_LOGS.md
-
curl -L -o REMOTE_LOGS.md https://huggingface.co/spaces/nikhtu10/HuggingRun/resolve/main/docs/REMOTE_LOGS.md
806 Bytes
远端 Space 日志(本地 debug 用)
用 HF API 拉取构建/运行日志,便于本地排查问题。需 HF_TOKEN(有该 Space 权限)。
容器运行日志(SSE)
curl -N \
-H "Authorization: Bearer $HF_TOKEN" \
"https://huggingface.co/api/spaces/tao-shen/HuggingRun/logs/run"
构建日志(SSE)
curl -N \
-H "Authorization: Bearer $HF_TOKEN" \
"https://huggingface.co/api/spaces/tao-shen/HuggingRun/logs/build"
将 tao-shen/HuggingRun 换成你的 SPACE_ID(例如 你的用户名/你的Space名)。
在脚本里用
# 拉取最近一段运行日志(Ctrl+C 结束)
HF_TOKEN=your_token ./scripts/monitor_and_test.py --logs run
# 拉取构建日志
HF_TOKEN=your_token ./scripts/monitor_and_test.py --logs build