Download init_setup.sh from c17hawke/tes-model: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/spaces/c17hawke/tes-model/resolve/main/init_setup.sh
- Command line
-
hf download hf://spaces/c17hawke/tes-model/init_setup.sh
-
curl -L -o init_setup.sh https://huggingface.co/spaces/c17hawke/tes-model/resolve/main/init_setup.sh
466 Bytes
| echo [$(date)]: "START" | |
| export _VERSION_=3.8 | |
| echo [$(date)]: "creating environment with python ${_VERSION_}" | |
| conda create --prefix ./env python=${_VERSION_} -y | |
| echo [$(date)]: "activate environment" | |
| source activate ./env | |
| echo [$(date)]: "install requirements" | |
| pip install -r requirements.txt | |
| echo [$(date)]: "export conda environment" | |
| conda env export > conda.yaml | |
| echo [$(date)]: "END" | |
| # to remove everything - | |
| # rm -rf env/ .gitignore conda.yaml README.md .git/ | |