ajayarora1235
commited on
Commit
·
25dff8b
1
Parent(s):
903c36e
trying to make model download work
Browse files
app.py
CHANGED
@@ -1340,7 +1340,7 @@ def download_from_url(url, model):
|
|
1340 |
zipfile = model + '.zip'
|
1341 |
zipfile_path = './zips/' + zipfile
|
1342 |
try:
|
1343 |
-
if "drive.google.com" in url:
|
1344 |
subprocess.run(["gdown", url, "--fuzzy", "-O", zipfile_path])
|
1345 |
elif "mega.nz" in url:
|
1346 |
m = Mega()
|
@@ -1481,7 +1481,7 @@ def zip_downloader(model):
|
|
1481 |
else:
|
1482 |
return f'./weights/{model}.pth', "Could not find Index file."
|
1483 |
|
1484 |
-
download_from_url('https://drive.google.com/
|
1485 |
|
1486 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="Ilaria RVC 💖") as app:
|
1487 |
with gr.Tabs():
|
|
|
1340 |
zipfile = model + '.zip'
|
1341 |
zipfile_path = './zips/' + zipfile
|
1342 |
try:
|
1343 |
+
if "drive.google.com" in url or "drive.usercontent.google.com":
|
1344 |
subprocess.run(["gdown", url, "--fuzzy", "-O", zipfile_path])
|
1345 |
elif "mega.nz" in url:
|
1346 |
m = Mega()
|
|
|
1481 |
else:
|
1482 |
return f'./weights/{model}.pth', "Could not find Index file."
|
1483 |
|
1484 |
+
download_from_url('https://drive.usercontent.google.com/download?id=17KaIpC6BkxLnMaaRviW7HnWfIcynEdmX&authuser=0', 'JVKE-main')
|
1485 |
|
1486 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="Ilaria RVC 💖") as app:
|
1487 |
with gr.Tabs():
|