Spaces:
Build error
Build error
File size: 2,038 Bytes
d498226 7ac6163 0c32edc 5ee5954 7ac6163 5ee5954 7ac6163 8852255 843c1f9 8852255 7ac6163 843c1f9 5ee5954 843c1f9 7ac6163 5ee5954 20fe6c3 7ac6163 8852255 7ac6163 5ee5954 7ac6163 5ee5954 7ac6163 5ee5954 c255068 64127a1 c6a816d 64127a1 20fe6c3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | # Requires Python >= 3.11 (3.9 is EOL since Oct 2025) # Production uses python:3.11-slim Docker image # === Core Framework === fastapi>=0.115.2 uvicorn[standard]>=0.27.0 pydantic>=2.5.3 python-multipart>=0.0.6 # === AI/ML (CPU version for Hugging Face Spaces) === # We will install torch CPU explicitly in Dockerfile to save space, # but keeping it here without version pin is good practice for local dev. # torch # torchvision # torchaudio transformers>=4.37.0 accelerate>=0.26.0 datasets>=2.16.1 # === Audio Processing === librosa>=0.10.1 soundfile>=0.12.1 audioread>=3.0.1 resampy>=0.4.2 # === CLAP Embeddings (Layer 2 - optional, CPU) === # laion-clap is deliberately NOT installed: it pins numpy<2, and the AURIS # model pickles were saved with numpy 2 (they reference numpy._core), so # under numpy 1.x the LightGBM verdict, all 11 voters and the # meta-classifier failed to load. Without it the CLAP layer reports its # spectral heuristic fallback (layers.clap.mode = "heuristic_spectral"). # === Data Processing === # Match the versions the models were pickled with (numpy 2.x, scikit-learn 1.8.0). numpy>=2.0.0 pandas>=2.1.4 scipy>=1.11.4 scikit-learn==1.8.0 lightgbm>=4.6.0,<5 xgboost>=3.2.0,<4 # SHAP TreeExplainer for the per-feature explanation of the verdict. shap>=0.48.0 # === API & Web === aiohttp>=3.9.1 httpx>=0.26.0 requests>=2.31.0 gradio>=6.0.0,<7.0.0 # === Gradio Client (FST Layer 3 - external API) === gradio_client>=1.0.0 # === Utilities === python-dotenv>=1.0.0 pyyaml>=6.0.1 click>=8.1.7 # === Monitoring & Logging === loguru>=0.7.2 prometheus-client>=0.19.0 # === YouTube/Spotify === # yt-dlp should always be latest to support new youtube updates yt-dlp>=2024.1.0 # spotdl conflicts with gradio (requires fastapi<0.104, gradio requires >=0.115.2) # spotdl is only used locally, not on HF Spaces # === Crown Commend (YouTube Comment AI) === google-genai>=1.0.0 google-api-python-client>=2.134.0 google-auth-httplib2>=0.2.0 google-auth-oauthlib>=1.2.0 isodate>=0.6.1 youtube-transcript-api>=0.6.2 |