crowncode-backend / requirements.txt
Rthur2003's picture
feat: general analysis route için audio uploads ve YouTube URLs düzeltildi
843c1f9
Raw History Blame Contribute Delete
2.04 kB
# 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