Download scripts/setup_local.sh from chonthichar/crypto-forecasting-ai: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/spaces/chonthichar/crypto-forecasting-ai/resolve/main/scripts/setup_local.sh
- Command line
-
hf download hf://spaces/chonthichar/crypto-forecasting-ai/scripts/setup_local.sh
-
curl -L -o setup_local.sh https://huggingface.co/spaces/chonthichar/crypto-forecasting-ai/resolve/main/scripts/setup_local.sh
370 Bytes
| set -euo pipefail | |
| ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| cd "$ROOT" | |
| python -m venv .venv | |
| source .venv/bin/activate | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| if [ ! -f .env ]; then cp .env.example .env; fi | |
| printf '\nSetup complete. Edit .env, then run: source .venv/bin/activate && ./scripts/run_local.sh\n' | |