HuggingRun / docs /REMOTE_LOGS.md
tao-shen's picture
chore: add remote logs doc + monitor script, restore Dockerfile pip step
fe5f1bf

远端 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