Download scripts/start_hf_space.sh from lablab-ai-amd-developer-hackathon/ReliefLensDemo: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/lablab-ai-amd-developer-hackathon/ReliefLensDemo/resolve/main/scripts/start_hf_space.sh
- Command line
-
hf download hf://spaces/lablab-ai-amd-developer-hackathon/ReliefLensDemo/scripts/start_hf_space.sh
-
curl -L -o start_hf_space.sh https://huggingface.co/spaces/lablab-ai-amd-developer-hackathon/ReliefLensDemo/resolve/main/scripts/start_hf_space.sh
428 Bytes
| set -e | |
| : "${BACKEND_ORIGIN:=http://129.212.185.232:8080}" | |
| echo "[INFO] Using BACKEND_ORIGIN=${BACKEND_ORIGIN}" | |
| envsubst '${BACKEND_ORIGIN}' < /etc/nginx/templates/nginx.space.conf.template > /etc/nginx/conf.d/default.conf | |
| cd /app/frontend | |
| echo "[INFO] Starting Next.js frontend on 127.0.0.1:3000" | |
| npx next start -H 127.0.0.1 -p 3000 & | |
| echo "[INFO] Starting nginx on 0.0.0.0:7860" | |
| nginx -g "daemon off;" |