Spaces:
Running
on
Zero
Running
on
Zero
| # Pre-startup script for HuggingFace Spaces | |
| # This runs before the main application | |
| echo "π Initializing Music Generation Studio..." | |
| # Verify espeak-ng installation | |
| if command -v espeak-ng &> /dev/null; then | |
| echo "β espeak-ng is installed" | |
| espeak-ng --version | |
| else | |
| echo "β espeak-ng not found" | |
| exit 1 | |
| fi | |
| # Verify ffmpeg | |
| if command -v ffmpeg &> /dev/null; then | |
| echo "β ffmpeg is installed" | |
| ffmpeg -version | head -1 | |
| else | |
| echo "β ffmpeg not found" | |
| fi | |
| # Create necessary directories | |
| mkdir -p outputs/music | |
| mkdir -p outputs/mixed | |
| mkdir -p models | |
| mkdir -p logs | |
| echo "β Directories created" | |
| # Check Python version | |
| python --version | |
| # Verify key dependencies | |
| echo "π¦ Verifying Python packages..." | |
| python -c "import torch; print(f'β PyTorch {torch.__version__}')" || echo "β PyTorch not found" | |
| python -c "import gradio; print(f'β Gradio {gradio.__version__}')" || echo "β Gradio not found" | |
| python -c "import phonemizer; print('β phonemizer OK')" || echo "β phonemizer not found" | |
| echo "β Pre-startup checks complete" | |