
apt update --yes
apt install ffmpeg --yes

export UV_SKIP_WHEEL_FILENAME_CHECK=1
export UV_LINK_MODE=copy


git clone https://github.com/FurkanGozukara/Paints-UNDO

cd Paints-UNDO

python3.11 -m venv venv

source ./venv/bin/activate

echo "Installing requirements"

cd ..

python -m pip install --upgrade pip

pip install uv

uv pip install wheel

uv pip install -r requirements_paints_undo.txt  --index-strategy unsafe-best-match
uv pip install -r requirements_onnx_cuda13_deps.txt
uv pip install --prerelease=allow --no-deps -r requirements_onnx_cuda13.txt
uv pip install xformers==0.0.35 --no-deps --index-url https://download.pytorch.org/whl/cu130

# Show completion message
echo "Virtual environment made and installed properly"

# Keep the terminal open
read -p "Press Enter to continue..."
