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