Download start.sh from 000x/sinhala-subtitle-hardcoder: direct link, hf CLI and curl.
- Browser
- Download file 799 Bytes
-
https://huggingface.co/spaces/000x/sinhala-subtitle-hardcoder/resolve/main/start.sh
- Command line
-
hf download hf://spaces/000x/sinhala-subtitle-hardcoder/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/000x/sinhala-subtitle-hardcoder/resolve/main/start.sh
799 Bytes
| set -e | |
| echo "==========================================" | |
| echo " OpenSEO - Hugging Face Docker" | |
| echo "==========================================" | |
| echo "" | |
| echo "[1/3] Checking authentication configuration..." | |
| if [ -z "$TEAM_DOMAIN" ]; then | |
| echo "ERROR: TEAM_DOMAIN is not configured." | |
| echo "" | |
| echo "Set TEAM_DOMAIN in Hugging Face Space Secrets." | |
| exit 1 | |
| fi | |
| if [ -z "$POLICY_AUD" ]; then | |
| echo "ERROR: POLICY_AUD is not configured." | |
| echo "" | |
| echo "Set POLICY_AUD in Hugging Face Space Secrets." | |
| exit 1 | |
| fi | |
| echo "TEAM_DOMAIN configured." | |
| echo "POLICY_AUD configured." | |
| echo "" | |
| echo "[2/3] Applying local D1 migrations..." | |
| pnpm run db:migrate:local | |
| echo "" | |
| echo "[3/3] Starting OpenSEO..." | |
| exec pnpm exec vite preview \ | |
| --host 0.0.0.0 \ | |
| --port 7860 |