File size: 528 Bytes
582cb4e
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -euo pipefail
T=$(cat /root/.hftok)
curl -sL -H "Authorization: Bearer $T" -T /root/measure_pooled.jsonl \
  "https://huggingface.co/datasets/eyad-silx/progress/resolve/main/x" 2>/dev/null || true
/root/ingot/.venv/bin/python - <<'PY'
from huggingface_hub import HfApi
tok = open("/root/.hftok").read().strip()
HfApi(token=tok).upload_file(path_or_fileobj="/root/measure_pooled.jsonl",
    path_in_repo="podflow/twin_per_sample.jsonl",
    repo_id="eyad-silx/progress", repo_type="model")
print("DATA_UP_OK")
PY