Skip to content

Commit

Permalink
Update model_download.py
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisewf authored Jan 29, 2024
1 parent 7350e69 commit 7a14fda
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rvc/lib/tools/model_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ def unzip_file(zip_path, zip_file_name):


url = sys.argv[1]

if "?download=true" in url:
url = url.replace("?download=true", "")

verify = download_from_url(url)

if verify == "downloaded":
Expand All @@ -217,7 +221,7 @@ def unzip_file(zip_path, zip_file_name):
print(f"Error downloading {model_name}")
sys.exit()
if extract_folder_path == "":
print("No zip founded...")
print("Zip file was not found.")
sys.exit()
result = search_pth_index(extract_folder_path)
else:
Expand Down

0 comments on commit 7a14fda

Please sign in to comment.