saladday1's picture
code: sync from git
7505a51 verified
Raw History Blame Contribute Delete
452 Bytes
#!/usr/bin/env bash
# Entry point for the scheduled HF Job (image python:3.12, secret HF_TOKEN).
# Pulls the code from the dataset repo and runs the daily pipeline with --push.
set -euo pipefail
pip install -q "huggingface_hub>=1.17,<3" pandas pyarrow numpy requests httpx pyyaml duckdb
hf download MiniMaxAI/oss-ecosystem-data --repo-type dataset --include "code/*" --local-dir /w
cd /w/code
HFECO_LOCAL=/w/data python scripts/daily.py "${@:---push}"