Edwardx001 commited on
Commit
682ff3c
·
verified ·
1 Parent(s): a35fb89

Update requirements.txt

Browse files

Updates via numpy<2 is required by pyannote.audio==3.1.x.

Files changed (1) hide show
  1. requirements.txt +11 -22
requirements.txt CHANGED
@@ -1,29 +1,18 @@
1
- # Requirements for Pyannote Diarization Space
2
- # CRITICAL: Install NumPy 1.x FIRST before anything else
3
- # This MUST be installed before torch and pyannote to avoid NumPy 2.x
4
 
5
- # NumPy 1.x (pyannote.audio 3.1.1 is NOT compatible with NumPy 2.x)
6
- # numpy==1.26.4
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
- # make HF toolkit happy without pulling too-new features
27
- transformers==4.35.2
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