Download entrypoint.sh from nst1/gemini: direct link, hf CLI and curl.
- Browser
- Download file 219 Bytes
-
https://huggingface.co/spaces/nst1/gemini/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/nst1/gemini/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/nst1/gemini/resolve/main/entrypoint.sh
219 Bytes
| set -euo pipefail | |
| # 启动 Xvfb 在后台 | |
| Xvfb :99 -screen 0 1280x800x24 -ac & | |
| # 等待 Xvfb 启动 | |
| sleep 1 | |
| # 设置 DISPLAY 环境变量 | |
| export DISPLAY=:99 | |
| # 启动 Python 应用 | |
| exec python -u main.py | |