Last active
August 23, 2025 14:52
-
-
Save greatwolf/cd16c5b4b5f7e7206a9db742b72bb20e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/lua | |
| sh = function(...) | |
| local cmd = table.concat({...}, ' ') | |
| return os.execute(cmd) | |
| end | |
| shout = function(...) | |
| local cmd = table.concat({...}, ' ') | |
| local out = assert(io.popen(cmd)):read '*all' | |
| assert(type(out) == 'string') | |
| return out:sub(0, -2) -- drop trailing newline | |
| end | |
| sh 'apt-get install python3.8 python3.8-distutils' | |
| sh 'update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1' | |
| sh 'update-alternatives --set python3 /usr/bin/python3.8' | |
| sh 'apt-get install python3-pip' | |
| sh 'python3 -m pip install --upgrade pip setuptools wheel --user' | |
| sh 'apt-get install ffmpeg libsndfile1 libsndfile1-dev' | |
| sh 'pip install ffmpeg-python soundfile' | |
| sh 'git clone https://github.com/ZeyueT/AudioX.git' | |
| sh 'pip install ./AudioX' | |
| sh 'mkdir -p ./AudioX/model' | |
| sh 'wget https://huggingface.co/HKUSTAudio/AudioX/resolve/main/model.ckpt -O ./AudioX/model/model.ckpt' | |
| sh 'wget https://huggingface.co/HKUSTAudio/AudioX/resolve/main/config.json -O ./AudioX/model/config.json' | |
| -- python3 run_gradio.py --model-config model/config.json --share |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment