Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -132,8 +132,8 @@ model_path = './models/iclight_sd15_fc.safetensors'
|
|
132 |
# model_path = './models/iclight_sd15_fbc.safetensors'
|
133 |
|
134 |
|
135 |
-
|
136 |
-
|
137 |
|
138 |
sd_offset = sf.load_file(model_path)
|
139 |
sd_origin = unet.state_dict()
|
|
|
132 |
# model_path = './models/iclight_sd15_fbc.safetensors'
|
133 |
|
134 |
|
135 |
+
if not os.path.exists(model_path):
|
136 |
+
download_url_to_file(url='https://huggingface.co/lllyasviel/ic-light/resolve/main/iclight_sd15_fc.safetensors', dst=model_path)
|
137 |
|
138 |
sd_offset = sf.load_file(model_path)
|
139 |
sd_origin = unet.state_dict()
|