Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
490092e
1
Parent(s):
88459e0
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,12 +5,13 @@ import gradio as gr
|
|
| 5 |
|
| 6 |
|
| 7 |
os.system('gdown https://drive.google.com/uc?id=1Flw6Z0K2QdRrTn5F-gVt6HdR9TRPiaKy')
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
shutil.move('VQMIVC-pretrained models/checkpoints/', '.')
|
| 10 |
shutil.move('VQMIVC-pretrained models/vocoder/', '.')
|
| 11 |
|
| 12 |
-
|
| 13 |
-
zip_ref.extractall('/content/VQMIVC/')
|
| 14 |
|
| 15 |
def inference(audio1, audio2):
|
| 16 |
os.system("python convert_example.py -s "+ audio1.name+" -r "+ audio2.name+ " -c converted -m 'checkpoints/useCSMITrue_useCPMITrue_usePSMITrue_useAmpTrue/VQMIVC-model.ckpt-500.pt'")
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
os.system('gdown https://drive.google.com/uc?id=1Flw6Z0K2QdRrTn5F-gVt6HdR9TRPiaKy')
|
| 8 |
+
with zipfile.ZipFile('/content/VQMIVC/VQMIVC-pretrained models.zip', 'r') as zip_ref:
|
| 9 |
+
zip_ref.extractall('/content/VQMIVC/')
|
| 10 |
+
|
| 11 |
shutil.move('VQMIVC-pretrained models/checkpoints/', '.')
|
| 12 |
shutil.move('VQMIVC-pretrained models/vocoder/', '.')
|
| 13 |
|
| 14 |
+
|
|
|
|
| 15 |
|
| 16 |
def inference(audio1, audio2):
|
| 17 |
os.system("python convert_example.py -s "+ audio1.name+" -r "+ audio2.name+ " -c converted -m 'checkpoints/useCSMITrue_useCPMITrue_usePSMITrue_useAmpTrue/VQMIVC-model.ckpt-500.pt'")
|