Spaces:
Running on Zero
Running on Zero
Commit ·
6d6994b
1
Parent(s): 9755f3f
[Admin] Fix for new ZeroGPU hardware (#11)
Browse files- Fix runtime error: pin Amphion to Vevo 1.5 commit + add torchcodec (4af2fdc3208df3a5acaaac0602f475b8c767c81c)
- Add torchcodec (required by torchaudio>=2.9 for torchaudio.save) (c3fc8daba366c7d99dbd7498d49db5703e39f199)
- app.py +5 -0
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -143,8 +143,13 @@ def patch_langsegment_init():
|
|
| 143 |
patch_langsegment_init()
|
| 144 |
|
| 145 |
# Clone Amphion repository
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
if not os.path.exists("Amphion"):
|
| 147 |
subprocess.run(["git", "clone", "https://github.com/open-mmlab/Amphion.git"])
|
|
|
|
| 148 |
os.chdir("Amphion")
|
| 149 |
else:
|
| 150 |
if not os.getcwd().endswith("Amphion"):
|
|
|
|
| 143 |
patch_langsegment_init()
|
| 144 |
|
| 145 |
# Clone Amphion repository
|
| 146 |
+
# Pinned to the Vevo 1.5 release commit: later commits (Vevo2) rewrote
|
| 147 |
+
# models/vc/flow_matching_transformer/llama_nar.py against a newer transformers
|
| 148 |
+
# API, which is incompatible with the transformers==4.41.2 pinned in requirements.txt
|
| 149 |
+
AMPHION_COMMIT = "1ebed0c328fbfcc1b4857da66618e5c75aafdeff"
|
| 150 |
if not os.path.exists("Amphion"):
|
| 151 |
subprocess.run(["git", "clone", "https://github.com/open-mmlab/Amphion.git"])
|
| 152 |
+
subprocess.run(["git", "-C", "Amphion", "checkout", AMPHION_COMMIT])
|
| 153 |
os.chdir("Amphion")
|
| 154 |
else:
|
| 155 |
if not os.getcwd().endswith("Amphion"):
|
requirements.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
gradio>=3.50.2
|
| 2 |
torch>=2.0.0
|
| 3 |
torchaudio>=2.0.0
|
|
|
|
| 4 |
numpy>=1.20.0
|
| 5 |
huggingface_hub>=0.14.1
|
| 6 |
librosa>=0.9.2
|
|
|
|
| 1 |
gradio>=3.50.2
|
| 2 |
torch>=2.0.0
|
| 3 |
torchaudio>=2.0.0
|
| 4 |
+
torchcodec
|
| 5 |
numpy>=1.20.0
|
| 6 |
huggingface_hub>=0.14.1
|
| 7 |
librosa>=0.9.2
|