Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update requirements.txt
Browse files- requirements.txt +36 -9
requirements.txt
CHANGED
|
@@ -1,13 +1,40 @@
|
|
| 1 |
-
--
|
| 2 |
-
|
| 3 |
-
#
|
| 4 |
-
#
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
soundfile
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
streamlit == 1.45.1
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
plotly
|
| 13 |
kaleido==1.0.0
|
|
|
|
| 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
|
| 19 |
+
numpy<2.0 # pyannote's older internals hit a removed np.NaN alias on
|
| 20 |
+
# numpy 2.x; this is the combination verified working
|
| 21 |
+
# with pyannote.audio 3.4.0.
|
| 22 |
soundfile
|
| 23 |
+
matplotlib # imported internally by pyannote.audio's task modules,
|
| 24 |
+
# even though this app doesn't plot with it directly.
|
| 25 |
+
|
| 26 |
+
# huggingface_hub is intentionally left unpinned: pip resolves a compatible
|
| 27 |
+
# version automatically as a dependency of pyannote.audio==3.4.0.
|
| 28 |
+
|
| 29 |
+
# --- Classifier support --------------------------------------------------
|
| 30 |
+
# Pin to match (or be very close to) the version 05062026_groupClassifier.pkl
|
| 31 |
+
# was actually trained with, to avoid unpickling warnings/version drift.
|
| 32 |
+
scikit-learn==1.7.2
|
| 33 |
+
|
| 34 |
+
# --- App / UI -------------------------------------------------------------
|
| 35 |
streamlit == 1.45.1
|
| 36 |
+
pandas
|
| 37 |
+
opencv-python-headless # headless variant: no GUI/X11 needed on Spaces;
|
| 38 |
+
# lighter and avoids extra system-level dependencies.
|
| 39 |
plotly
|
| 40 |
kaleido==1.0.0
|