File size: 510 Bytes
327a922
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
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