| # requirements.txt | |
| # 1. Provide the EXACT torch and torchaudio versions required by PlayDiffusion. | |
| --find-links https://download.pytorch.org/whl/cu121 | |
| torch==2.6.0 | |
| torchaudio==2.6.0 | |
| # 2. Add Gradio for the web interface. | |
| gradio | |
| # 3. Add other essential audio/utility libraries. | |
| # NOTICE: We have COMPLETELY REMOVED 'fairseq', 'xformers', etc. | |
| pydub | |
| unidecode | |
| av | |
| wget | |
| # 4. Install the main PlayDiffusion package. | |
| # It will now correctly pull in its OWN dependencies (like fairseq2) without conflict. | |
| playdiffusion @ git+https://github.com/playht/PlayDiffusion.git | |