Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update requirements.txt
Browse files- 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 |
-
#
|
| 8 |
-
#
|
| 9 |
-
#
|
| 10 |
-
#
|
| 11 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
# ---------------------------------------------------------------------------
|
| 13 |
|
| 14 |
-
torch
|
| 15 |
-
torchaudio
|
| 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
|