Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update requirements.txt
Browse files- 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
|
| 6 |
-
# verified to have real cp313 (Python 3.13) wheels
|
| 7 |
-
# should trigger a "no matching distribution" error like the previous
|
| 8 |
-
# attempt did.
|
| 9 |
#
|
| 10 |
-
# torch/torchaudio: pinned to 2.6.0, the
|
| 11 |
-
# wheel for torchaudio (torch alone had 3.13 support
|
| 12 |
-
# but torchaudio didn't catch up until 2.6.0
|
| 13 |
-
#
|
| 14 |
-
# (torch 2.7.1+cu118
|
| 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:
|
| 20 |
-
#
|
| 21 |
-
#
|
| 22 |
-
#
|
| 23 |
-
#
|
| 24 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|