Spaces:
Runtime error
Runtime error
gokaygokay
commited on
Commit
•
bc62600
1
Parent(s):
4d122d3
Update app.py
Browse files
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://
|
37 |
-
download_file("https://
|
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")
|