ajayarora1235
commited on
Commit
•
11c60e2
1
Parent(s):
bde6238
fix audio renaming bug, refresh bug
Browse files
app.py
CHANGED
@@ -1304,9 +1304,15 @@ def save_to_wav(record_button):
|
|
1304 |
return new_path
|
1305 |
|
1306 |
def save_to_wav2(dropbox):
|
1307 |
-
file_path=dropbox.name
|
1308 |
-
|
1309 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1310 |
|
1311 |
def match_index(sid0):
|
1312 |
folder=sid0.split(".")[0]
|
@@ -1481,9 +1487,12 @@ def zip_downloader(model):
|
|
1481 |
else:
|
1482 |
return f'./weights/{model}.pth', "Could not find Index file."
|
1483 |
|
1484 |
-
|
1485 |
-
download_from_url('https://drive.google.com/uc?id=
|
1486 |
-
|
|
|
|
|
|
|
1487 |
|
1488 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="Ilaria RVC 💖") as app:
|
1489 |
with gr.Tabs():
|
|
|
1304 |
return new_path
|
1305 |
|
1306 |
def save_to_wav2(dropbox):
|
1307 |
+
file_path = dropbox.name
|
1308 |
+
destination_dir = './audios'
|
1309 |
+
|
1310 |
+
destination_path = os.path.join(destination_dir, os.path.basename(file_path))
|
1311 |
+
shutil.copy2(file_path, destination_path)
|
1312 |
+
|
1313 |
+
os.remove(file_path)
|
1314 |
+
|
1315 |
+
return destination_path
|
1316 |
|
1317 |
def match_index(sid0):
|
1318 |
folder=sid0.split(".")[0]
|
|
|
1487 |
else:
|
1488 |
return f'./weights/{model}.pth', "Could not find Index file."
|
1489 |
|
1490 |
+
async def download_and_change():
|
1491 |
+
await download_from_url('https://drive.google.com/uc?id=1O98vvnle_nZP8ZdpnZFLZ5TU1UZe7x0p&confirm=t', 'JVKE-main')
|
1492 |
+
await download_from_url('https://drive.google.com/uc?id=1h810cil3YRlN4pu4oO43zKq9z3cYjItp&confirm=t', 'jvke-nighttime-v4')
|
1493 |
+
change_choices()
|
1494 |
+
|
1495 |
+
asyncio.run(download_and_change())
|
1496 |
|
1497 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="Ilaria RVC 💖") as app:
|
1498 |
with gr.Tabs():
|