Update requirements.txt
Browse files- requirements.txt +20 -7
requirements.txt
CHANGED
|
@@ -1,21 +1,34 @@
|
|
| 1 |
# requirements.txt
|
| 2 |
|
| 3 |
-
#
|
| 4 |
--find-links https://download.pytorch.org/whl/cu121
|
| 5 |
-
torch==2.
|
| 6 |
-
torchaudio==2.
|
| 7 |
|
| 8 |
-
#
|
| 9 |
fairseq==0.12.2
|
| 10 |
|
| 11 |
# Other dependencies
|
| 12 |
gradio
|
| 13 |
sentencepiece
|
| 14 |
-
tokenizers
|
| 15 |
-
xformers
|
| 16 |
einops
|
| 17 |
pydub
|
| 18 |
unidecode
|
| 19 |
hydra-core
|
| 20 |
av
|
| 21 |
-
playdiffusion @ git+https://github.com/playht/PlayDiffusion.git
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|