Skip to content

Commit 0ab59e8

Browse files
committed
Improve downloading AI model
1 parent f827405 commit 0ab59e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ImageEditor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2217,7 +2217,8 @@ def _download_model(self, model_name, path):
22172217
if model_file.exists():
22182218
return True
22192219

2220-
http = urllib3.PoolManager()
2220+
urllib3.disable_warnings()
2221+
http = urllib3.PoolManager(num_pools=1, cert_reqs="CERT_NONE")
22212222
r = http.request('GET', models[model_name], preload_content=False)
22222223
file_size = int(r.getheaders()['content-length'])
22232224

0 commit comments

Comments
 (0)