mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01:00
fix: Error when downloading model from UI (#3014)
This commit is contained in:
parent
e0a50fb77a
commit
88a747b5b9
@ -23,7 +23,7 @@ from tqdm.contrib.concurrent import thread_map
|
|||||||
|
|
||||||
|
|
||||||
class ModelDownloader:
|
class ModelDownloader:
|
||||||
def __init__(self, max_retries):
|
def __init__(self, max_retries = 5):
|
||||||
self.s = requests.Session()
|
self.s = requests.Session()
|
||||||
if max_retries:
|
if max_retries:
|
||||||
self.s.mount('https://cdn-lfs.huggingface.co', HTTPAdapter(max_retries=max_retries))
|
self.s.mount('https://cdn-lfs.huggingface.co', HTTPAdapter(max_retries=max_retries))
|
||||||
|
Loading…
Reference in New Issue
Block a user