duongthienz commited on
Commit
bce0082
·
verified ·
1 Parent(s): 7e1260e

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +15 -10
requirements.txt CHANGED
@@ -1,18 +1,23 @@
1
  # ---------------------------------------------------------------------------
2
  # Sonogram app -- requirements.txt for the Hugging Face Space
3
- # Replaces the original, which was missing scikit-learn entirely and
4
- # pinned an outdated CUDA 11.3 wheel index that isn't needed on HF's
5
- # managed hardware.
6
  #
7
- # NOTE: unlike a self-hosted server, HF Spaces provisions the CUDA runtime
8
- # for you based on the Space's selected hardware tier (CPU / T4 / A10G /
9
- # etc.), so there's no need for a custom --extra-index-url here -- plain
10
- # `torch`/`torchaudio` from PyPI will pull a CUDA-enabled build automatically
11
- # when the Space's hardware tier has a GPU.
 
 
 
 
 
 
 
 
12
  # ---------------------------------------------------------------------------
13
 
14
- torch>=2.5.1
15
- torchaudio>=2.5.1
16
 
17
  # --- Core diarization pipeline ------------------------------------------
18
  pyannote.audio==3.4.0
 
1
  # ---------------------------------------------------------------------------
2
  # Sonogram app -- requirements.txt for the Hugging Face Space
 
 
 
3
  #
4
+ # IMPORTANT: torch/torchaudio are now EXACT pins, not floors. An open ">="
5
+ # let pip grab whatever is newest at build time, which on a fresh Python 3.13
6
+ # build resolved to a torch/torchaudio pairing that doesn't expose
7
+ # torchaudio.AudioMetaData the way pyannote.audio 3.4.0 expects -- causing
8
+ # an ImportError at startup. Pinning to the exact version we've actually
9
+ # verified working avoids that drift.
10
+ #
11
+ # ALSO REQUIRED: set this Space to Python 3.10 or 3.11 in your README.md
12
+ # YAML header, e.g.:
13
+ # python_version: "3.11"
14
+ # Everything here has only been verified on 3.10/3.11. Python 3.13 is very
15
+ # new and this whole stack (torch/torchaudio/pyannote.audio) hasn't been
16
+ # confirmed compatible with it.
17
  # ---------------------------------------------------------------------------
18
 
19
+ torch==2.5.1
20
+ torchaudio==2.5.1
21
 
22
  # --- Core diarization pipeline ------------------------------------------
23
  pyannote.audio==3.4.0