crowncode-backend / requirements.txt
Rthur2003's picture
fix: add lightgbm and xgboost to requirements.txt
5cbef23
# 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 requires torch; install torch CPU first
laion-clap>=1.1.4
# === Data Processing ===
numpy>=1.26.3
pandas>=2.1.4
scipy>=1.11.4
scikit-learn>=1.3.2
lightgbm>=4.3.0
xgboost>=2.0.3
# === 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