Kzkdjdbfjd / Ah.py
ArianatorQualquer's picture
Rename Dl.py to Ah.py
a78dfde
raw
history blame contribute delete
775 Bytes
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)