Spaces:
Sleeping
Sleeping
Upload utils.py
Browse files
utils.py
CHANGED
@@ -111,7 +111,7 @@ def download_thing(directory, url, civitai_api_key="", progress=gr.Progress(trac
|
|
111 |
if "/blob/" in url:
|
112 |
url = url.replace("/blob/", "/resolve/")
|
113 |
#user_header = f'"Authorization: Bearer {hf_token}"'
|
114 |
-
if hf_token:
|
115 |
download_hf_file(directory, url)
|
116 |
#os.system(f"aria2c --console-log-level=error --summary-interval=10 --header={user_header} -c -x 16 -k 1M -s 16 {url} -d {directory} -o {url.split('/')[-1]}")
|
117 |
else:
|
|
|
111 |
if "/blob/" in url:
|
112 |
url = url.replace("/blob/", "/resolve/")
|
113 |
#user_header = f'"Authorization: Bearer {hf_token}"'
|
114 |
+
if True or hf_token:
|
115 |
download_hf_file(directory, url)
|
116 |
#os.system(f"aria2c --console-log-level=error --summary-interval=10 --header={user_header} -c -x 16 -k 1M -s 16 {url} -d {directory} -o {url.split('/')[-1]}")
|
117 |
else:
|