File size: 775 Bytes
a78dfde |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import os
import requests
# Set the directory where you want to save the files
save_dir = "/content/Advanced-RVC-Inference/"
# Set the URLs of the files you want to download
file_urls = [
"https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt",
"https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/rmvpe.pt"
]
# Loop through the URLs and download each file
for file_url in file_urls:
# Get the filename from the URL
filename = file_url.split("/")[-1]
# Create the full path to save the file
save_path = os.path.join(save_dir, filename)
# Download the file
response = requests.get(file_url)
# Save the file to disk
with open(save_path, "wb") as f:
f.write(response.content) |