gokaygokay commited on
Commit
bc62600
1 Parent(s): 4d122d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,8 +33,8 @@ def download_file(url, folder_path, filename):
33
  print(f"Error downloading the file. Status code: {response.status_code}")
34
 
35
  # Download ESRGAN models
36
- download_file("https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x2.pth", "models/upscalers/", "RealESRGAN_x2.pth")
37
- download_file("https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4.pth", "models/upscalers/", "RealESRGAN_x4.pth")
38
 
39
  # Download the model files
40
  ckpt_dir = snapshot_download(repo_id="John6666/pony-realism-v21main-sdxl")
 
33
  print(f"Error downloading the file. Status code: {response.status_code}")
34
 
35
  # Download ESRGAN models
36
+ download_file("https://huggingface.co/ai-forever/Real-ESRGAN/resolve/main/RealESRGAN_x2.pth?download=true", "models/upscalers/", "RealESRGAN_x2.pth")
37
+ download_file("https://huggingface.co/ai-forever/Real-ESRGAN/resolve/main/RealESRGAN_x4.pth?download=true", "models/upscalers/", "RealESRGAN_x4.pth")
38
 
39
  # Download the model files
40
  ckpt_dir = snapshot_download(repo_id="John6666/pony-realism-v21main-sdxl")