There IS no app.py in the main folder, you're supposed to run it via acestep, so I added the lines to install it use it instead
4.9 KiB
4.9 KiB
In [ ]:
#@title Install and Download
import codecs
print("Installing...")
!sudo apt update > /dev/null 2>&1
!sudo apt install python3.10 > /dev/null 2>&1
!sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 > /dev/null 2>&1
!sudo update-alternatives --set python3 /usr/bin/python3.10 > /dev/null 2>&1
!curl -sS https://bootstrap.pypa.io/get-pip.py | python3 > /dev/null 2>&1
import sys
sys.path.append('/usr/local/lib/python3.10/dist-packages')
repopath = codecs.decode('erdhverzragf.gkg', 'rot_13')
!git clone https://github.com/usamireko/ACE-Step
%cd /content/ACE-Step
!pip install uv pyngrok > /dev/null 2>&1
!uv pip install -r {repopath} > /dev/null 2>&1
!uv pip install huggingface-hub numpy==1.26.0 > /dev/null 2>&1
!huggingface-cli download ACE-Step/ACE-Step-v1-3.5B --local-dir /content/ACE-Step/checkpoints --local-dir-use-symlinks False
import os
os.environ['MPLBACKEND'] = 'agg'In [ ]:
#@title Run Gradio UI
bf16 = True # @param {"type":"boolean"}
print(" * Running UI...")
!pip install e .!acestep --checkpoint_path ./checkpoints/ --port 7865 --device_id 0 --share true --bf16 {bf16}