Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download start.sh from larxius/SentinelScan-WSS: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/spaces/larxius/SentinelScan-WSS/resolve/main/start.sh
- Command line
-
hf download hf://spaces/larxius/SentinelScan-WSS/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/larxius/SentinelScan-WSS/resolve/main/start.sh
513 Bytes
| set -e | |
| echo "=== SentinelScan Startup ===" | |
| echo "[startup] Checking Python..." | |
| python --version | |
| echo "[startup] Testing app import..." | |
| python -c " | |
| import sys, os | |
| sys.path.insert(0, os.path.abspath('backend')) | |
| from backend import create_app | |
| app = create_app() | |
| print('[startup] App imported OK, routes:', len(list(app.url_map.iter_rules()))) | |
| " 2>&1 | |
| echo "[startup] Starting gunicorn..." | |
| exec gunicorn --bind 0.0.0.0:7860 --workers 1 --timeout 300 \ | |
| --access-logfile - --error-logfile - \ | |
| app:app | |