Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,29 +18,13 @@ os.chdir("Ilaria-RVC-Mainline-Huggingface")
|
|
| 18 |
|
| 19 |
|
| 20 |
# Download the Pretrains
|
| 21 |
-
|
| 22 |
-
subprocess.run(["aria2c", "--console-log-level=error", "-c", "-x", "16", "-s", "16", "-k", "1M", url, "-d", output_path], check=True)
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
| 27 |
|
| 28 |
-
files = [
|
| 29 |
-
"D32k.pth", "D40k.pth", "D48k.pth",
|
| 30 |
-
"G32k.pth", "G40k.pth", "G48k.pth",
|
| 31 |
-
"f0D32k.pth", "f0D40k.pth", "f0D48k.pth", "f0G32k.pth"
|
| 32 |
-
]
|
| 33 |
-
|
| 34 |
-
for file in files:
|
| 35 |
-
url = base_url + file
|
| 36 |
-
download_file(url, output_directory)
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
urllib.request.urlretrieve("https://raw.githubusercontent.com/poiqazwsx/Ilaria-RVC-Mainline/main/infer/lib/audio.py", "/infer/lib/audio.py")
|
| 40 |
-
print("File replaced successfully.")
|
| 41 |
-
os.mkdir("/Ilaria-RVC-Mainline-Huggingface/assets/weights")
|
| 42 |
-
os.mkdir("/Ilaria-RVC-Mainline-Huggingface/dataset")
|
| 43 |
-
os.mkdir("/Ilaria-RVC-Mainline-Huggingface/audios")
|
| 44 |
|
| 45 |
# installing other requirements
|
| 46 |
subprocess.run(["pip", "install", "-r", "/Ilaria-RVC-Mainline-Huggingface/requirements.txt"], check=True)
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
# Download the Pretrains
|
| 21 |
+
comm = "aria2c --console-log-level=error -c -x 16 -s 16 -k 1M"
|
|
|
|
| 22 |
|
| 23 |
+
subprocess.run([comm, "https://huggingface.co/lj1995/{e}/resolve/main/hubert_base.pt", "-d", "/Ilaria-RVC-Mainline/assets/hubert", "-o", "hubert_base.pt"], check=True)
|
| 24 |
+
subprocess.run([comm, "https://raw.githubusercontent.com/poiqazwsx/Ilaria-RVC-Mainline/main/assets/hubert/hubert_inputs.pth", "-d", "/Ilaria-RVC-Mainline/assets/hubert", "-o", "hubert_inputs.pth"], check=True)
|
| 25 |
+
subprocess.run([comm, "https://huggingface.co/lj1995/{e}/resolve/main/rmvpe.pt" "-d" "/Ilaria-RVC-Mainline/assets/rmvpe", "-o", "rmvpe.pt"], check=True)
|
| 26 |
+
subprocess.run([comm, "https://github.com/poiqazwsx/Ilaria-RVC-Mainline/blob/main/assets/rmvpe/rmvpe_inputs.pth", "-d", "/Ilaria-RVC-Mainline/assets/rmvpe", "-o", "rmvpe.pth"], check=True)
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
# installing other requirements
|
| 30 |
subprocess.run(["pip", "install", "-r", "/Ilaria-RVC-Mainline-Huggingface/requirements.txt"], check=True)
|