Spaces:
Paused
Paused
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 |