Skip to content

Commit af557a0

Browse files
committed
Use hf CLI in test workflow
1 parent 7880f13 commit af557a0

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

.github/workflows/test.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,7 @@ jobs:
2222
- name: Install huggingface-hub
2323
run: python -m pip install huggingface-hub
2424
- name: Download model
25-
run: |
26-
python - <<'PY'
27-
import os
28-
from huggingface_hub import hf_hub_download
29-
30-
hf_hub_download(
31-
repo_id=os.environ["REPO_ID"],
32-
filename=os.environ["MODEL_FILE"],
33-
)
34-
PY
25+
run: hf download ${{ env.REPO_ID }} ${{ env.MODEL_FILE }}
3526
- name: Cache model
3627
uses: actions/cache@v4
3728
with:

0 commit comments

Comments
 (0)