lemm-test-100 / setup_diffrhythm2_src.sh
Gamahea
Deploy Music Generation Studio - 2025-12-12 16:01
aad9d66
#!/bin/bash
# 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"