Download docker-entrypoint.sh from FineEnvs/DesignGym: direct link, hf CLI and curl.
- Browser
- Download file 567 Bytes
-
https://huggingface.co/spaces/FineEnvs/DesignGym/resolve/main/docker-entrypoint.sh
- Command line
-
hf download hf://spaces/FineEnvs/DesignGym/docker-entrypoint.sh
-
curl -L -o docker-entrypoint.sh https://huggingface.co/spaces/FineEnvs/DesignGym/resolve/main/docker-entrypoint.sh
567 Bytes
| # Pick the task source. With the corpus manifest in the image, serve the full | |
| # corpus: from the bucket mount if there is one, otherwise over HTTP. Without | |
| # it, serve the pack built into the image. | |
| if [ -f /app/design_canvas/corpus-manifest.json ]; then | |
| export DESIGN_CANVAS_CORPUS="${DESIGN_CANVAS_CORPUS:-/app/design_canvas/corpus-manifest.json}" | |
| [ -d "${DESIGN_CANVAS_SOURCE_ROOT:-/corpus}/data" ] || unset DESIGN_CANVAS_SOURCE_ROOT | |
| else | |
| export DESIGN_CANVAS_PACK="${DESIGN_CANVAS_PACK:-/data/pack}" | |
| unset DESIGN_CANVAS_SOURCE_ROOT | |
| fi | |
| exec "$@" | |