kramp HF Staff commited on
Commit
386937d
·
unverified ·
1 Parent(s): 132d1b3

Fix deps: add torchcodec, scipy; cap numpy<2.0

Browse files
Files changed (1) hide show
  1. requirements.txt +16 -5
requirements.txt CHANGED
@@ -1,14 +1,25 @@
 
1
  torch
2
  torchaudio
3
- spandrel
 
 
 
 
 
4
  audiosr
5
- matplotlib
 
 
 
6
  ffmpeg-python
7
- gradio==6.14.0
8
- spaces
9
- numpy
10
  opencv-python-headless
11
  librosa
12
  soundfile
 
 
 
 
 
13
  huggingface_hub
14
  python-dotenv
 
1
+ # PyTorch — keep unpinned so HF selects the right CUDA build
2
  torch
3
  torchaudio
4
+ torchcodec # required by torchaudio>=2.5 as default audio loader
5
+
6
+ # Video upscaling
7
+ spandrel # Real-ESRGAN loader (no build-time torch dep)
8
+
9
+ # Audio upscaling
10
  audiosr
11
+ matplotlib # undeclared dep of audiosr.utilities
12
+ scipy # undeclared dep of audiosr / librosa DSP
13
+
14
+ # Media I/O
15
  ffmpeg-python
 
 
 
16
  opencv-python-headless
17
  librosa
18
  soundfile
19
+
20
+ # App / infra
21
+ gradio==6.14.0
22
+ spaces
23
+ numpy<2.0 # audiosr, scipy, librosa not yet numpy-2.x compatible
24
  huggingface_hub
25
  python-dotenv