Spaces:
Running on Zero
Running on Zero
fix(spaces): pin torchaudio==2.10.0 to match HF base torch
Browse filesHF Spaces' base image pre-installs torch==2.10.0. Our previous bare
'torchaudio' constraint let pip resolve to e.g. 2.5.x whose
_torchaudio.abi3.so was built against torch 2.5's C++ ABI — load
crashes at runtime. Cascade: comfyui/comfy/ldm/lightricks/vae/audio_vae.py
fails to import, ComfyUI-LTXVideo can't register, workflow's
LTXVAudioVAEDecode missing → KeyError on Generate.
- requirements.txt +4 -1
requirements.txt
CHANGED
|
@@ -5,7 +5,10 @@ psutil # used by app.py model status badge
|
|
| 5 |
|
| 6 |
torch>=2.4.0
|
| 7 |
torchvision
|
| 8 |
-
torchaudio
|
|
|
|
|
|
|
|
|
|
| 9 |
numpy
|
| 10 |
Pillow
|
| 11 |
einops
|
|
|
|
| 5 |
|
| 6 |
torch>=2.4.0
|
| 7 |
torchvision
|
| 8 |
+
# HF Spaces ships torch==2.10.0; bare 'torchaudio' lets pip pick an older
|
| 9 |
+
# wheel whose C++ ABI doesn't match → import crashes the whole audio code
|
| 10 |
+
# path including ComfyUI-LTXVideo's audio VAE. Pin the matching version.
|
| 11 |
+
torchaudio==2.10.0
|
| 12 |
numpy
|
| 13 |
Pillow
|
| 14 |
einops
|