Spaces:
Running
Running
Download sync.sh from camel-ai/camel-data-explorer: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/camel-ai/camel-data-explorer/resolve/main/sync.sh
- Command line
-
hf download hf://spaces/camel-ai/camel-data-explorer/sync.sh
-
curl -L -o sync.sh https://huggingface.co/spaces/camel-ai/camel-data-explorer/resolve/main/sync.sh
401 Bytes
| TMP_DIR=/tmp/camel_hf_tmp | |
| echo $TMP_DIR | |
| HF_REPO_DIR=`realpath .` | |
| echo $HF_REPO_DIR | |
| mkdir -p $TMP_DIR | |
| git clone -b hf_spaces_2 https://github.com/lightaime/camel.git $TMP_DIR | |
| cd $TMP_DIR | |
| find apps/data_explorer -name "*.py" | grep -v test | xargs -n 1 -I {} rsync -R {} $HF_REPO_DIR | |
| find apps/common -name "*.py" | grep -v test | xargs -n 1 -I {} rsync -R {} $HF_REPO_DIR | |
| rm -rf $TMP_DIR | |
| echo Done | |