Spaces:
Configuration error
Configuration error
Download setup_diffrhythm2_src.sh from Gamahea/lemm-test-100: direct link, hf CLI and curl.
- Browser
- Download file 599 Bytes
-
https://huggingface.co/spaces/Gamahea/lemm-test-100/resolve/main/setup_diffrhythm2_src.sh
- Command line
-
hf download hf://spaces/Gamahea/lemm-test-100/setup_diffrhythm2_src.sh
-
curl -L -o setup_diffrhythm2_src.sh https://huggingface.co/spaces/Gamahea/lemm-test-100/resolve/main/setup_diffrhythm2_src.sh
599 Bytes
| # Setup script for HuggingFace Spaces | |
| # Clones DiffRhythm2 source code if not present | |
| set -e | |
| echo "π§ Setting up DiffRhythm2 source code..." | |
| MODELS_DIR="models" | |
| DR2_SRC_DIR="$MODELS_DIR/diffrhythm2_source" | |
| # Create models directory | |
| mkdir -p "$MODELS_DIR" | |
| # Check if DiffRhythm2 source exists | |
| if [ ! -d "$DR2_SRC_DIR" ]; then | |
| echo "π₯ Cloning DiffRhythm2 source repository..." | |
| git clone https://github.com/ASLP-lab/DiffRhythm2.git "$DR2_SRC_DIR" | |
| echo "β DiffRhythm2 source cloned" | |
| else | |
| echo "β DiffRhythm2 source already exists" | |
| fi | |
| echo "β Setup complete" | |