Spaces:
Sleeping
Sleeping
Download entrypoint.sh from phaethon-order/tech-trans-rag: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/spaces/phaethon-order/tech-trans-rag/resolve/bb68da23f4c463dcd807e29c0422879e1b94de4c/entrypoint.sh
- Command line
-
hf download hf://spaces/phaethon-order/tech-trans-rag@bb68da23f4c463dcd807e29c0422879e1b94de4c/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/phaethon-order/tech-trans-rag/resolve/bb68da23f4c463dcd807e29c0422879e1b94de4c/entrypoint.sh
329 Bytes
| set -e | |
| # choose a canonical persistent path | |
| : "${PERSIST_DIRECTORY:=/data/chroma_db}" | |
| mkdir -p "$PERSIST_DIRECTORY" | |
| # if running as root, fix /data ownership and perms so future runs can write | |
| if [ "$(id -u)" -eq 0 ]; then | |
| chown -R 1000:1000 /data || true | |
| chmod -R u+rwX,g+rwX /data || true | |
| fi | |
| exec "$@" | |