Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def download_file(url, output_path):
|
|
23 |
|
24 |
# Example usage:
|
25 |
base_url = "https://huggingface.co/lj1995/{e}/resolve/main/pretrained_v2/"
|
26 |
-
output_directory = "/assets/pretrained_v2"
|
27 |
|
28 |
files = [
|
29 |
"D32k.pth", "D40k.pth", "D48k.pth",
|
@@ -38,12 +38,12 @@ for file in files:
|
|
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("/assets/weights")
|
42 |
-
os.mkdir("/dataset")
|
43 |
-
os.mkdir("/audios)
|
44 |
|
45 |
# installing other requirements
|
46 |
-
subprocess.run(["pip", "install", "-r", "requirements.txt"], check=True)
|
47 |
print("Finished Installing")
|
48 |
|
49 |
subprocess.run(["python", "infer-web.py"], check=True)
|
|
|
23 |
|
24 |
# Example usage:
|
25 |
base_url = "https://huggingface.co/lj1995/{e}/resolve/main/pretrained_v2/"
|
26 |
+
output_directory = "/Ilaria-RVC-Mainline-Huggingface/assets/pretrained_v2"
|
27 |
|
28 |
files = [
|
29 |
"D32k.pth", "D40k.pth", "D48k.pth",
|
|
|
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)
|
47 |
print("Finished Installing")
|
48 |
|
49 |
subprocess.run(["python", "infer-web.py"], check=True)
|