Download auto.bash from trtlbby/skrep: direct link, hf CLI and curl.
- Browser
- Download file 285 Bytes
-
https://huggingface.co/spaces/trtlbby/skrep/resolve/main/auto.bash
- Command line
-
hf download hf://spaces/trtlbby/skrep/auto.bash
-
curl -L -o auto.bash https://huggingface.co/spaces/trtlbby/skrep/resolve/main/auto.bash
285 Bytes
| VENV_DIR=".venv" | |
| #activate if exists | |
| if [ -d "$VENV_DIR" ]; then | |
| source "$VENV_DIR/Scripts/activate" | |
| pip freeze >> requirements.txt | |
| echo "requirements generated from virtual env: $VENV_DIR" | |
| else | |
| echo "error: virtual env : $VENV_DIR not found" | |
| exit 1 | |
| fi |