Spaces:
Runtime error
Runtime error
Download build-run.sh from radames/Real-Time-SD-Turbo: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/spaces/radames/Real-Time-SD-Turbo/resolve/main/build-run.sh
- Command line
-
hf download hf://spaces/radames/Real-Time-SD-Turbo/build-run.sh
-
curl -L -o build-run.sh https://huggingface.co/spaces/radames/Real-Time-SD-Turbo/resolve/main/build-run.sh
557 Bytes
| cd frontend | |
| npm install | |
| npm run build | |
| if [ $? -eq 0 ]; then | |
| echo -e "\033[1;32m\nfrontend build success \033[0m" | |
| else | |
| echo -e "\033[1;31m\nfrontend build failed\n\033[0m" >&2 exit 1 | |
| fi | |
| cd ../ | |
| #check if var PIPELINE is set otherwise get default | |
| if [ -z ${PIPELINE+x} ]; then | |
| PIPELINE="controlnet" | |
| fi | |
| if [ -z ${COMPILE+x} ]; then | |
| COMPILE="--pruna" | |
| fi | |
| echo -e "\033[1;32m\npipeline: $PIPELINE \033[0m" | |
| echo -e "\033[1;32m\ncompile: $COMPILE \033[0m" | |
| python3 ./server/main.py --port 7860 --host 0.0.0.0 --pipeline $PIPELINE $COMPILE |