Spaces:
Sleeping
Sleeping
Use more recent way to call hf cli
Browse files
build.sh
CHANGED
|
@@ -17,7 +17,7 @@ fi
|
|
| 17 |
|
| 18 |
# Download the space
|
| 19 |
# git clone --depth 1 https://:$HF_TOKEN@huggingface.co/spaces/$HF_SPACE_NAME space
|
| 20 |
-
|
| 21 |
|
| 22 |
# Change directory to the space's directory
|
| 23 |
cd space
|
|
|
|
| 17 |
|
| 18 |
# Download the space
|
| 19 |
# git clone --depth 1 https://:$HF_TOKEN@huggingface.co/spaces/$HF_SPACE_NAME space
|
| 20 |
+
hf download $HF_SPACE_NAME --repo-type space --local-dir space --token $HF_TOKEN
|
| 21 |
|
| 22 |
# Change directory to the space's directory
|
| 23 |
cd space
|