Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,11 @@ else:
|
|
| 10 |
|
| 11 |
|
| 12 |
# Clone the repository
|
| 13 |
-
subprocess.run(["git", "clone", "https://github.com/
|
| 14 |
|
| 15 |
|
| 16 |
# chande directory
|
| 17 |
-
os.chdir("Ilaria-RVC-Mainline")
|
| 18 |
|
| 19 |
|
| 20 |
# Download the Pretrains
|
|
@@ -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 = "/
|
| 27 |
|
| 28 |
files = [
|
| 29 |
"D32k.pth", "D40k.pth", "D48k.pth",
|
|
@@ -36,11 +36,11 @@ for file in files:
|
|
| 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", "/
|
| 40 |
print("File replaced successfully.")
|
| 41 |
-
os.mkdir("/
|
| 42 |
-
os.mkdir("/
|
| 43 |
-
os.mkdir("/
|
| 44 |
|
| 45 |
# installing other requirements
|
| 46 |
subprocess.run(["pip", "install", "-r", "requirements.txt"], check=True)
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
# Clone the repository
|
| 13 |
+
subprocess.run(["git", "clone", "https://github.com/poiqazwsx/Ilaria-RVC-Mainline-Huggingface"], check=True)
|
| 14 |
|
| 15 |
|
| 16 |
# chande directory
|
| 17 |
+
os.chdir("Ilaria-RVC-Mainline-Huggingface")
|
| 18 |
|
| 19 |
|
| 20 |
# Download the Pretrains
|
|
|
|
| 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",
|
|
|
|
| 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("/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)
|