Edwardx001 commited on
Commit
6624ce3
·
verified ·
1 Parent(s): f0a1195

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +17 -9
requirements.txt CHANGED
@@ -1,12 +1,20 @@
1
  # Requirements for Pyannote Diarization Space
2
  # These are compatible versions for HuggingFace Spaces
3
 
4
- # NumPy MUST be pinned to 1.x for pyannote.audio compatibility
5
- numpy==1.26.4
6
-
7
- # Use older Gradio version compatible with NumPy 1.x
8
- gradio==4.16.0
9
-
10
- pyannote.audio==3.1.1
11
- torch==2.1.2
12
- torchaudio==2.1.2
 
 
 
 
 
 
 
 
 
1
  # Requirements for Pyannote Diarization Space
2
  # These are compatible versions for HuggingFace Spaces
3
 
4
+ # --- hard pins to avoid NumPy 2.x issues ---
5
+ numpy==1.26.4
6
+
7
+ # torch/torchaudio matched (CPU wheels auto-install on Spaces)
8
+ torch==2.1.2
9
+ torchaudio==2.1.2
10
+
11
+ # pyannote release known to work with numpy<2
12
+ pyannote.audio==3.1.1
13
+
14
+ # UI (your choice); 4.16.0 works fine with numpy 1.26
15
+ gradio==4.16.0
16
+
17
+ # audio IO: pyannote prefers soundfile backend
18
+ soundfile==0.12.1
19
+ # helpful but optional if you load/convert media
20
+ ffmpeg-python==0.2.0