techfreakworm commited on
Commit
10af3aa
·
unverified ·
1 Parent(s): 27ffbbc

docs(skills): use cat ~/.cache/huggingface/token (hf auth token removed)

Browse files
Files changed (1) hide show
  1. SKILLS.md +4 -3
SKILLS.md CHANGED
@@ -23,7 +23,7 @@ Skipping the visual repro twice in a row produced patches that addressed a diffe
23
  For Spaces failures, the run logs are the source of truth. Pull and search:
24
 
25
  ```bash
26
- HF_TOKEN=$(hf auth token)
27
  curl -s -H "Authorization: Bearer ${HF_TOKEN}" \
28
  "https://huggingface.co/api/spaces/techfreakworm/LTX2.3-Studio/logs/run" \
29
  -o /tmp/hf_run.log
@@ -48,6 +48,7 @@ PY
48
  ### Stage check before action
49
 
50
  ```bash
 
51
  curl -s -H "Authorization: Bearer ${HF_TOKEN}" \
52
  "https://huggingface.co/api/spaces/techfreakworm/LTX2.3-Studio" | jq -r '.runtime'
53
  ```
@@ -152,7 +153,7 @@ lsof -nP -iTCP:7860 -sTCP:LISTEN | awk 'NR>1 {print $2}' | xargs -r kill -9
152
 
153
  ```bash
154
  git push origin master # GitHub
155
- HF_TOKEN=$(hf auth token) # HF auth
156
  git push "https://techfreakworm:${HF_TOKEN}@huggingface.co/spaces/techfreakworm/LTX2.3-Studio" master:main
157
  ```
158
 
@@ -273,7 +274,7 @@ Do not loop on patches when you've patched twice and it's still broken.
273
 
274
  ```bash
275
  # What's the Space's current SHA vs local HEAD
276
- hf_sha=$(curl -s -H "Authorization: Bearer $(hf auth token)" \
277
  "https://huggingface.co/api/spaces/techfreakworm/LTX2.3-Studio" \
278
  | jq -r '.sha')
279
  echo "HF: ${hf_sha:0:8} local: $(git rev-parse HEAD | cut -c1-8)"
 
23
  For Spaces failures, the run logs are the source of truth. Pull and search:
24
 
25
  ```bash
26
+ HF_TOKEN=$(cat ~/.cache/huggingface/token)
27
  curl -s -H "Authorization: Bearer ${HF_TOKEN}" \
28
  "https://huggingface.co/api/spaces/techfreakworm/LTX2.3-Studio/logs/run" \
29
  -o /tmp/hf_run.log
 
48
  ### Stage check before action
49
 
50
  ```bash
51
+ HF_TOKEN=$(cat ~/.cache/huggingface/token)
52
  curl -s -H "Authorization: Bearer ${HF_TOKEN}" \
53
  "https://huggingface.co/api/spaces/techfreakworm/LTX2.3-Studio" | jq -r '.runtime'
54
  ```
 
153
 
154
  ```bash
155
  git push origin master # GitHub
156
+ HF_TOKEN=$(cat ~/.cache/huggingface/token) # HF auth (cli removed `hf auth token`)
157
  git push "https://techfreakworm:${HF_TOKEN}@huggingface.co/spaces/techfreakworm/LTX2.3-Studio" master:main
158
  ```
159
 
 
274
 
275
  ```bash
276
  # What's the Space's current SHA vs local HEAD
277
+ hf_sha=$(curl -s -H "Authorization: Bearer $(cat ~/.cache/huggingface/token)" \
278
  "https://huggingface.co/api/spaces/techfreakworm/LTX2.3-Studio" \
279
  | jq -r '.sha')
280
  echo "HF: ${hf_sha:0:8} local: $(git rev-parse HEAD | cut -c1-8)"