Download start_backend.sh from CodeByBB/anycoder: direct link, hf CLI and curl.
- Browser
- Download file 529 Bytes
-
https://huggingface.co/spaces/CodeByBB/anycoder/resolve/main/start_backend.sh
- Command line
-
hf download hf://spaces/CodeByBB/anycoder/start_backend.sh
-
curl -L -o start_backend.sh https://huggingface.co/spaces/CodeByBB/anycoder/resolve/main/start_backend.sh
529 Bytes
| # Start the FastAPI backend | |
| echo "Starting AnyCoder FastAPI Backend..." | |
| echo "API will be available at: http://localhost:8000" | |
| echo "API docs at: http://localhost:8000/docs" | |
| echo "" | |
| # Check if HF_TOKEN is set | |
| if [ -z "$HF_TOKEN" ]; then | |
| echo "⚠️ WARNING: HF_TOKEN environment variable is not set!" | |
| echo "Please set it with: export HF_TOKEN=your_token_here" | |
| echo "" | |
| fi | |
| # Activate virtual environment | |
| source /Users/ahsenkhaliq/anycoder/.venv/bin/activate | |
| # Start the backend | |
| python backend_api.py | |