thelip commited on
Commit
8c361de
Β·
verified Β·
1 Parent(s): 7d9c5b1

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +9 -23
requirements.txt CHANGED
@@ -1,34 +1,20 @@
1
  # requirements.txt
2
 
3
- # Provide the specific torch/torchaudio versions required by PlayDiffusion
4
  --find-links https://download.pytorch.org/whl/cu121
5
  torch==2.6.0
6
  torchaudio==2.6.0
7
 
8
- # Keep fairseq pinned to a version known to build reliably
9
- fairseq==0.12.2
10
-
11
- # Other dependencies
12
  gradio
13
- sentencepiece
14
- # We remove tokenizers and xformers, as the new torch/playdiffusion handle them
15
- einops
16
  pydub
17
  unidecode
18
- hydra-core
19
  av
20
- playdiffusion @ git+https://github.com/playht/PlayDiffusion.git
21
- ```*(Note: I've also removed `tokenizers` and `xformers` as separate lines. The newer versions of the main libraries often install their own compatible versions, and explicitly listing them can sometimes cause new conflicts. It's best to start with a minimal list.)*
22
-
23
- ### **What to Do Now**
24
-
25
- 1. **Replace the content** of your `requirements.txt` file with the new, corrected version above.
26
- 2. **Save** the file.
27
- 3. **Commit and push** the change to your Hugging Face Space:
28
- ```bash
29
- git add requirements.txt
30
- git commit -m "Resolve torch version conflict required by PlayDiffusion"
31
- git push
32
- ```
33
 
34
- Go back to your Space. It will start building again. This time, `pip` will be able to satisfy all the conditions: `fairseq` gets its stable version, and `PlayDiffusion` gets the exact `torch` version it needs. This should be the final fix to get your Space building successfully.
 
 
 
1
  # requirements.txt
2
 
3
+ # 1. Provide the EXACT torch and torchaudio versions required by PlayDiffusion.
4
  --find-links https://download.pytorch.org/whl/cu121
5
  torch==2.6.0
6
  torchaudio==2.6.0
7
 
8
+ # 2. Add Gradio for the web interface.
 
 
 
9
  gradio
10
+
11
+ # 3. Add other essential audio/utility libraries.
12
+ # NOTICE: We have COMPLETELY REMOVED 'fairseq', 'xformers', etc.
13
  pydub
14
  unidecode
 
15
  av
16
+ wget
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
+ # 4. Install the main PlayDiffusion package.
19
+ # It will now correctly pull in its OWN dependencies (like fairseq2) without conflict.
20
+ playdiffusion @ git+https://github.com/playht/PlayDiffusion.git