John6666 commited on
Commit
3487f4f
·
verified ·
1 Parent(s): 7847c2d

Upload utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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: