Spaces:
Runtime error
Runtime error
import wget | |
def download(): | |
url = 'https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt?download=true' | |
destination = './data/v1-5-pruned-emaonly.ckpt' | |
try: | |
wget.download(url, destination) | |
print("File downloaded successfully.") | |
except Exception as e: | |
print("Failed to download file:", e) | |