Spaces:
Paused
Paused
Download start.sh from Pixedar/mindvisualizer-live: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/spaces/Pixedar/mindvisualizer-live/resolve/main/start.sh
- Command line
-
hf download hf://spaces/Pixedar/mindvisualizer-live/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/Pixedar/mindvisualizer-live/resolve/main/start.sh
450 Bytes
| set -euo pipefail | |
| export DISPLAY="${DISPLAY:-:99}" | |
| export PORT="${PORT:-7860}" | |
| export VNC_GEOMETRY="${VNC_GEOMETRY:-1440x900x24}" | |
| export MINDVIS_ARGS="${MINDVIS_ARGS:-}" | |
| cd /app/mindVisualizer | |
| rm -f "/tmp/.X${DISPLAY#:}-lock" | |
| Xvfb "${DISPLAY}" -screen 0 "${VNC_GEOMETRY}" -ac +extension GLX +render -noreset \ | |
| >/tmp/xvfb.log 2>&1 & | |
| sleep 3 | |
| python /app/mindVisualizer/app.py --host 0.0.0.0 --port "${PORT}" ${MINDVIS_ARGS} | |