Update requirements.txt
Browse filesUpdates via numpy<2 is required by pyannote.audio==3.1.x.
- requirements.txt +11 -22
requirements.txt
CHANGED
|
@@ -1,29 +1,18 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
| 3 |
-
# This MUST be installed before torch and pyannote to avoid NumPy 2.x
|
| 4 |
|
| 5 |
-
#
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
# PyTorch (compatible with NumPy 1.26)
|
| 9 |
-
# torch==2.1.2
|
| 10 |
-
# torchaudio==2.1.2
|
| 11 |
-
|
| 12 |
-
# Pyannote (requires NumPy < 2.0)
|
| 13 |
-
# pyannote.audio==3.1.1
|
| 14 |
-
|
| 15 |
-
# Gradio (use older version compatible with NumPy 1.x)
|
| 16 |
-
# gradio==4.16.0
|
| 17 |
-
|
| 18 |
-
# core
|
| 19 |
-
pyannote.audio>=3.1.1
|
| 20 |
-
|
| 21 |
-
torch # keep unpinned to use the CUDA build already on the image
|
| 22 |
torchaudio
|
| 23 |
soundfile
|
| 24 |
requests
|
| 25 |
|
| 26 |
-
#
|
| 27 |
-
transformers==4.
|
| 28 |
sentence-transformers==2.2.2
|
|
|
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# keep numpy 1.x – pyannote 3.1.x is not NumPy 2–ready
|
| 2 |
+
numpy<2
|
|
|
|
| 3 |
|
| 4 |
+
# pyannote stack
|
| 5 |
+
pyannote.audio==3.1.1
|
| 6 |
+
torch # do NOT pin; use the image’s CUDA build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
torchaudio
|
| 8 |
soundfile
|
| 9 |
requests
|
| 10 |
|
| 11 |
+
# avoid importing newer torch APIs via HF toolkit
|
| 12 |
+
transformers==4.30.2
|
| 13 |
sentence-transformers==2.2.2
|
| 14 |
+
accelerate<0.27
|
| 15 |
|
| 16 |
+
# avoid newer protobuf (and sometimes onnx) that pull modern torch glue
|
| 17 |
+
protobuf<5
|
| 18 |
+
onnx<1.16
|