Download start.sh from agosh/sps: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/agosh/sps/resolve/main/start.sh
- Command line
-
hf download hf://spaces/agosh/sps/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/agosh/sps/resolve/main/start.sh
296 Bytes
| PA=$(pwd) | |
| cd /run/demonss/ | |
| PN=$(pwd) | |
| if [[ "$PA" == "$PN" ]]; then | |
| echo "false" | |
| exit 127 | |
| fi | |
| if [[ "$1" == "-i" ]]; then | |
| npm install express http-proxy-middleware | |
| npm install ws | |
| npm install node-pty | |
| else | |
| node server.js& >/dev/null | |
| node s.js | |
| echo "=== ERROR ===" | |
| fi | |