Spaces:
Sleeping
Sleeping
Download scripts/space_entrypoint.sh from Mongoosetross/reverse-etymology: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/spaces/Mongoosetross/reverse-etymology/resolve/main/scripts/space_entrypoint.sh
- Command line
-
hf download hf://spaces/Mongoosetross/reverse-etymology/scripts/space_entrypoint.sh
-
curl -L -o space_entrypoint.sh https://huggingface.co/spaces/Mongoosetross/reverse-etymology/resolve/main/scripts/space_entrypoint.sh
445 Bytes
| set -euo pipefail | |
| cd /app | |
| export PYTHONPATH=/app | |
| export PATH="${HOME}/.local/bin:${PATH}" | |
| if [[ ! -f data/index/atlas.sqlite || ! -f data/index/mmap/rev_off.i32 ]]; then | |
| echo "FATAL: baked etymology index missing from image (data/index)." >&2 | |
| echo "Publish artifacts/index.tar.zst and rebuild the Space image." >&2 | |
| exit 1 | |
| fi | |
| PORT="${PORT:-7860}" | |
| exec python -m uvicorn backend.app:app --host 0.0.0.0 --port "${PORT}" | |