MohammadGholizadeh commited on
Commit
3ef3a2e
·
verified ·
1 Parent(s): 21777c7

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +7 -27
requirements.txt CHANGED
@@ -1,35 +1,15 @@
1
  # ---------------------------------------------------------------------------
2
- # Dependency resolution notes (read before editing)
3
  #
4
- # The Spaces builder appends `gradio[oauth,mcp]==<sdk_version>` to this install,
5
- # using the sdk_version from README.md. That makes huggingface_hub the pinch
6
- # point:
7
  #
8
- # gradio 6.22.0 -> huggingface-hub >=1.16,<2.0
9
- # gradio 5.49.1 -> huggingface-hub >=0.33.5,<2.0 <-- what we use
10
- # nemo_toolkit[asr] 2.7.3 -> transformers ~=4.57 -> huggingface-hub <1.0
11
  #
12
- # gradio 6.22 and NeMo are therefore unsolvable together. README.md pins
13
- # sdk_version to 5.49.1, whose hub range overlaps NeMo's. Keep them in sync.
14
- #
15
- # Do NOT list huggingface_hub or numpy here — an unconstrained top-level entry
16
- # is what turned the last resolution into an unsolvable one. Let pip derive them.
17
- # Do NOT pin torch: the ZeroGPU image ships its own CUDA build.
18
  # ---------------------------------------------------------------------------
19
-
20
- # --- core ---
21
- # Matches NeMo's own pin exactly, so pip doesn't backtrack through 40 releases.
22
- transformers~=4.57.0
23
  accelerate
24
-
25
- # --- audio ---
26
  librosa>=0.10.1
27
  soundfile
28
-
29
- # --- NeMo (Parakeet CTC) ---
30
- # Heavy: this is the bulk of the build time. Drop this block plus the
31
- # "parakeet-ctc" entry in MODELS if you only want the two Whisper models.
32
- # If restore_from() rejects your .nemo checkpoint on 2.7.3, fall back to
33
- # nemo_toolkit[asr]==2.6.2 and change the transformers pin to ~=4.53.0.
34
- Cython
35
- nemo_toolkit[asr]==2.7.3
 
1
  # ---------------------------------------------------------------------------
2
+ # USE THIS FILE if the Spaces builder keeps forcing gradio 6.
3
  #
4
+ # NeMo is not installed here at all, which removes the huggingface_hub conflict
5
+ # entirely. Parakeet is served by your existing standalone Space instead: set
 
6
  #
7
+ # Settings -> Variables and secrets -> PARAKEET_SPACE = your-name/your-space
 
 
8
  #
9
+ # Rename this file to requirements.txt to use it.
 
 
 
 
 
10
  # ---------------------------------------------------------------------------
11
+ transformers
 
 
 
12
  accelerate
 
 
13
  librosa>=0.10.1
14
  soundfile
15
+ gradio_client