From 88a747b5b9a132ed848f736adaaadc76678d9e35 Mon Sep 17 00:00:00 2001 From: jeckyhl Date: Wed, 5 Jul 2023 16:27:29 +0200 Subject: [PATCH] fix: Error when downloading model from UI (#3014) --- download-model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download-model.py b/download-model.py index 9ee77906..2642c405 100644 --- a/download-model.py +++ b/download-model.py @@ -23,7 +23,7 @@ from tqdm.contrib.concurrent import thread_map class ModelDownloader: - def __init__(self, max_retries): + def __init__(self, max_retries = 5): self.s = requests.Session() if max_retries: self.s.mount('https://cdn-lfs.huggingface.co', HTTPAdapter(max_retries=max_retries))