Spaces:
Paused
Paused
Download start.sh from SpacesExamples/InvokeAI: direct link, hf CLI and curl.
- Browser
- Download file 510 Bytes
-
https://huggingface.co/spaces/SpacesExamples/InvokeAI/resolve/main/start.sh
- Command line
-
hf download hf://spaces/SpacesExamples/InvokeAI/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/SpacesExamples/InvokeAI/resolve/main/start.sh
510 Bytes
| set -e | |
| # Activate virtual environment | |
| source $HOME/.venv/bin/activate | |
| echo "Current PATH: $PATH" | |
| echo "INVOKEAI_ROOT: $INVOKEAI_ROOT" | |
| echo "Python version: $(python --version)" | |
| echo "Pip version: $(pip --version)" | |
| # Create INVOKEAI_ROOT directory if it doesn't exist | |
| mkdir -p $INVOKEAI_ROOT | |
| # Copy invokeai.yaml to INVOKEAI_ROOT if it doesn't exist | |
| if [ ! -f "$INVOKEAI_ROOT/invokeai.yaml" ]; then | |
| cp $HOME/invokeai.yaml $INVOKEAI_ROOT/invokeai.yaml | |
| fi | |
| # Run invokeai-web | |
| exec invokeai-web |