# ZeroGPU provides the base torch/CUDA stack; pin to a ZeroGPU-supported version # (docs list 2.8.0 / 2.9.1 / 2.10.0 / 2.11.0). 2.9.1 matches the ABI the wheels # below were built against. No +cuXXX local suffix — ZeroGPU resolves CUDA itself. torch==2.9.1 torchvision==0.24.1 # The ONE deliberate divergence from the local env (which runs transformers # 4.57.6): 4.57 pins huggingface-hub<1.0, but the gradio SDK this Space is forced # to use (ZeroGPU requires it) needs hub>=1.16 — pinning 4.57 dead-locks the # build. Everything else below mirrors the local joyai-video-edit env exactly. transformers>=5.0,<6 accelerate==1.10.1 diffusers==0.36.0 einops==0.8.2 numpy==2.2.6 pillow==12.2.0 opencv-python-headless==4.13.0.92 av==13.1.0 imageio-ffmpeg==0.6.0 websockets==16.0 openai==2.41.0 loguru==0.7.3 # Prebuilt custom CUDA kernels (cp310, torch 2.9.1 ABI, sm_120) are NOT listed # here: on HF Spaces `pip install -r requirements.txt` runs BEFORE the repo files # are copied into the build image, so a local ./wheels/*.whl path cannot be found # at build time. They are installed from wheels/ at app.py startup instead # (CPU phase, before importing xvideo) — see app.py _ensure_local_wheels().