duongthienz commited on
Commit
7e2e243
·
verified ·
1 Parent(s): 67cc2f6

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +21 -21
requirements.txt CHANGED
@@ -2,26 +2,28 @@
2
  # Sonogram app -- requirements.txt for the Hugging Face Space
3
  #
4
  # This Space builds from `FROM docker.io/library/python:3.13` (a Docker SDK
5
- # Space) -- confirmed from the build log. All versions below have been
6
- # verified to have real cp313 (Python 3.13) wheels available; nothing here
7
- # should trigger a "no matching distribution" error like the previous
8
- # attempt did.
9
  #
10
- # torch/torchaudio: pinned to 2.6.0, the EARLIEST version with a Python 3.13
11
- # wheel for torchaudio (torch alone had 3.13 support a bit earlier, at 2.5.1,
12
- # but torchaudio didn't catch up until 2.6.0, so both must move together).
13
- # This is also very close to the checkpoint's original training environment
14
- # (torch 2.7.1+cu118, per the "Model was trained with torch..." warning we
15
- # saw earlier) -- if 2.7.1 ever gets a 3.13 wheel and you want to move even
16
- # closer to that, it's worth revisiting, but 2.6.0 has been verified
17
- # installable today.
18
  #
19
- # numpy: the earlier `numpy<2.0` pin (a workaround for a bug in an older
20
- # pyannote.audio version, not 3.4.0) has been DROPPED -- numpy 1.x has no
21
- # Python 3.13 wheel at all, so it's not just unnecessary now, it's
22
- # uninstallable. If you hit any numpy-related error after this change,
23
- # flag it -- that would mean pyannote.audio 3.4.0 has its own numpy 2.x
24
- # issue we haven't seen yet, not a repeat of the old bug.
 
 
 
 
 
 
 
25
  # ---------------------------------------------------------------------------
26
 
27
  torch==2.6.0
@@ -29,13 +31,11 @@ torchaudio==2.6.0
29
 
30
  # --- Core diarization pipeline ------------------------------------------
31
  pyannote.audio==3.4.0
 
32
  soundfile
33
  matplotlib # imported internally by pyannote.audio's task modules,
34
  # even though this app doesn't plot with it directly.
35
 
36
- # huggingface_hub is intentionally left unpinned: pip resolves a compatible
37
- # version automatically as a dependency of pyannote.audio==3.4.0.
38
-
39
  # --- Classifier support --------------------------------------------------
40
  # Pin to match (or be very close to) the version 05062026_groupClassifier.pkl
41
  # was actually trained with, to avoid unpickling warnings/version drift.
 
2
  # Sonogram app -- requirements.txt for the Hugging Face Space
3
  #
4
  # This Space builds from `FROM docker.io/library/python:3.13` (a Docker SDK
5
+ # Space, confirmed from the build log). All versions below have been
6
+ # verified to have real cp313 (Python 3.13) wheels via direct download test.
 
 
7
  #
8
+ # torch/torchaudio: pinned to 2.6.0, the earliest version with a Python 3.13
9
+ # wheel for torchaudio (torch alone had 3.13 support slightly earlier, at
10
+ # 2.5.1, but torchaudio didn't catch up until 2.6.0 -- they must move
11
+ # together). Close to the checkpoint's original training environment
12
+ # (torch 2.7.1+cu118); revisit if 2.7.1 ever gets a 3.13 wheel.
 
 
 
13
  #
14
+ # numpy: no pin -- numpy 1.x (the old workaround for a bug in pyannote.audio
15
+ # 3.1.1, not 3.4.0) has NO Python 3.13 wheel at all, so it's not just
16
+ # unneeded, it's uninstallable. Flag any numpy-related error if one appears.
17
+ #
18
+ # huggingface_hub: pinned to 0.35.0 -- pyannote.audio 3.4.0's own internal
19
+ # code (pipeline.py) still calls hf_hub_download(..., use_auth_token=...),
20
+ # a parameter that huggingface_hub REMOVED entirely in its 1.0.0 release.
21
+ # Left unpinned, pip resolves to the newest available (1.0.0+) and breaks
22
+ # at pipeline load time with:
23
+ # TypeError: hf_hub_download() got an unexpected keyword argument 'use_auth_token'
24
+ # 0.35.0 is the newest 0.x release (confirmed to still support the old
25
+ # argument) and also satisfies this Space's own base-image floor pin of
26
+ # huggingface-hub>=0.30 baked into an earlier build layer.
27
  # ---------------------------------------------------------------------------
28
 
29
  torch==2.6.0
 
31
 
32
  # --- Core diarization pipeline ------------------------------------------
33
  pyannote.audio==3.4.0
34
+ huggingface_hub==0.35.0
35
  soundfile
36
  matplotlib # imported internally by pyannote.audio's task modules,
37
  # even though this app doesn't plot with it directly.
38
 
 
 
 
39
  # --- Classifier support --------------------------------------------------
40
  # Pin to match (or be very close to) the version 05062026_groupClassifier.pkl
41
  # was actually trained with, to avoid unpickling warnings/version drift.