Download entrypoint.sh from AnesKAM/gen: direct link, hf CLI and curl.
- Browser
- Download file 677 Bytes
-
https://huggingface.co/spaces/AnesKAM/gen/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/AnesKAM/gen/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/AnesKAM/gen/resolve/main/entrypoint.sh
677 Bytes
| set -euo pipefail | |
| # โโ ู ุฌูุฏุงุช /data (ููุช ุงูุชุดุบูู ููุท) โโ | |
| mkdir -p /data/workspace /data/cache /data/tmp /data/db | |
| # โโ ุชูุฌูู ุงูุชุฎุฒูู ุงูู ุคูุช ุฅูู /data โโ | |
| export DATA_DIR="${DATA_DIR:-/data}" | |
| export TMPDIR=/data/tmp | |
| export XDG_CACHE_HOME=/data/cache | |
| export HF_HOME=/data/cache/huggingface | |
| export HF_HUB_CACHE=/data/cache/huggingface/hub | |
| # โโ ุงูู ููุฐ (HF ูุชููุน 7860) โโ | |
| export PORT="${PORT:-7860}" | |
| echo "Genisi starting on port ${PORT}, DATA_DIR=${DATA_DIR}" | |
| exec uvicorn app.main:app \ | |
| --host 0.0.0.0 \ | |
| --port "${PORT}" \ | |
| --proxy-headers \ | |
| --forwarded-allow-ips='*' |