Download backend/bin/start.sh from new-arc/vector: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/spaces/new-arc/vector/resolve/main/backend/bin/start.sh
- Command line
-
hf download hf://spaces/new-arc/vector/backend/bin/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/new-arc/vector/resolve/main/backend/bin/start.sh
409 Bytes
| # Make sure pwd ends with backend | |
| if [ "$(basename "$PWD")" != "backend" ]; then | |
| echo "Error: Please run this script from the backend directory" | |
| exit 1 | |
| fi | |
| # Make sure .venv exists | |
| if [ ! -d ".venv" ]; then | |
| echo "Error: .venv directory not found" | |
| exit 1 | |
| fi | |
| # Activate the virtual environment | |
| source .venv/bin/activate | |
| # Start the application | |
| uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload | |