ajayarora1235
commited on
Commit
•
d7941e2
1
Parent(s):
11c60e2
try 2 fix refresh issue
Browse files
app.py
CHANGED
@@ -1487,12 +1487,22 @@ def zip_downloader(model):
|
|
1487 |
else:
|
1488 |
return f'./weights/{model}.pth', "Could not find Index file."
|
1489 |
|
1490 |
-
async def download_and_change():
|
1491 |
-
|
1492 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1493 |
change_choices()
|
1494 |
|
1495 |
-
asyncio.run(
|
1496 |
|
1497 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="Ilaria RVC 💖") as app:
|
1498 |
with gr.Tabs():
|
|
|
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 |
+
async def download_from_url_async(url, model):
|
1496 |
+
return download_from_url(url, model)
|
1497 |
+
|
1498 |
+
async def download_main():
|
1499 |
+
await asyncio.gather(
|
1500 |
+
download_from_url_async('https://drive.google.com/uc?id=1O98vvnle_nZP8ZdpnZFLZ5TU1UZe7x0p&confirm=t', 'JVKE-main'),
|
1501 |
+
download_from_url_async('https://drive.google.com/uc?id=1h810cil3YRlN4pu4oO43zKq9z3cYjItp&confirm=t', 'jvke-nighttime-v4')
|
1502 |
+
)
|
1503 |
change_choices()
|
1504 |
|
1505 |
+
asyncio.run(download_main())
|
1506 |
|
1507 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="Ilaria RVC 💖") as app:
|
1508 |
with gr.Tabs():
|