Spaces:
Running on T4
Running on T4
Download backend/start-backend.sh from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/start-backend.sh
- Command line
-
hf download hf://spaces/modventures/baseball-engine/backend/start-backend.sh
-
curl -L -o start-backend.sh https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/start-backend.sh
432 Bytes
| set -eu | |
| if [ -n "${FCM_SERVICE_ACCOUNT_JSON:-}" ]; then | |
| : "${FCM_PROJECT_ID:?Missing Firebase project ID}" | |
| : "${FCM_SERVICE_ACCOUNT_FILE:?Missing Firebase credentials path}" | |
| umask 077 | |
| printf '%s' "$FCM_SERVICE_ACCOUNT_JSON" > "$FCM_SERVICE_ACCOUNT_FILE" | |
| chmod 600 "$FCM_SERVICE_ACCOUNT_FILE" | |
| unset FCM_SERVICE_ACCOUNT_JSON | |
| fi | |
| exec uvicorn app.main:app --host 0.0.0.0 --port 8000 --proxy-headers | |