Spaces:
Running on Zero
Running on Zero
docs(skills): use cat ~/.cache/huggingface/token (hf auth token removed)
Browse files
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=$(
|
| 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=$(
|
| 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 $(
|
| 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)"
|