• Stefy Lanza (nextime / spora )'s avatar
    Add transformers backend for MusicGen (Python 3.13+ compatible) · 86fcdc95
    Stefy Lanza (nextime / spora ) authored
    The generate_music() function now supports two backends:
    
    1. audiocraft (preferred):
       - Original MusicGen implementation
       - Works on Python 3.12 and lower
       - Falls back to transformers if not available
    
    2. transformers (fallback):
       - Uses HuggingFace transformers library
       - Works on Python 3.13+
       - No spacy/blis dependency issues
    
    The function automatically:
    - Tries audiocraft first (if available)
    - Falls back to transformers if audiocraft fails or is not installed
    - Provides clear error messages if neither backend is available
    
    This allows MusicGen music generation to work on Python 3.13 without
    the problematic audiocraft → spacy → thinc → blis dependency chain.
    86fcdc95
Name
Last commit
Last update
static Loading commit data...
templates Loading commit data...
EXAMPLES.md Loading commit data...
LICENSE.md Loading commit data...
README.md Loading commit data...
SKILL.md Loading commit data...
requirements.txt Loading commit data...
videogen Loading commit data...
videogen_mcp_server.py Loading commit data...
videogen_models.json Loading commit data...
webapp.py Loading commit data...