@@ -83,7 +83,7 @@ def install(self):
83
83
# logger.info(f"\t repo_filename: {repo_filename}")
84
84
# logger.info(f"\t destination: {destination}")
85
85
# logger.info(f"\t destinationRenamed: {destinationRenamed}")
86
-
86
+
87
87
downloaded = hf_hub_download (repo_id = repo_id , filename = repo_filepath , local_dir = install_to , revision = revision )
88
88
logger .info (f"\t size: { self ._get_file_size (downloaded )} " )
89
89
if rename_to :
@@ -92,7 +92,7 @@ def install(self):
92
92
else :
93
93
self ._rename_file (downloaded , destination )
94
94
logger .info (f"\t Downloaded to: { destination } " )
95
-
95
+
96
96
# Git
97
97
elif type == "git" :
98
98
repo_path = os .path .join (install_to , self ._get_repo_name (src ))
@@ -196,7 +196,7 @@ def _download_file(self, src, install_to, name, bearer_token = None):
196
196
if 'text/html' in content_type or 'application/xhtml+xml' in content_type :
197
197
logger .error (f"\t ❌ Received HTML response instead of file. If you are downloading from civitai you will need to add api_key: YOUR_CIVITAI_API_KEY to the resource." )
198
198
return None
199
-
199
+
200
200
# Rest of the method...
201
201
content_disposition = response .headers .get ('Content-Disposition' )
202
202
logger .info (f"\t Content-Disposition: { content_disposition } " )
@@ -258,7 +258,7 @@ def main():
258
258
parser .add_argument ("command" , nargs = "?" , choices = ["install" , "run" ], help = "The command to execute." )
259
259
parser .add_argument ("script" , nargs = "?" , help = "The script name to execute." )
260
260
parser .add_argument ("-f" , "--file" , default = "zoo.yaml" , help = "The YAML file to use." )
261
- parser .add_argument ("-v" , "--version" , action = "version" , help = "The current version of the zoomaker." , version = "0.9 .0" )
261
+ parser .add_argument ("-v" , "--version" , action = "version" , help = "The current version of the zoomaker." , version = "0.10 .0" )
262
262
args = parser .parse_args ()
263
263
264
264
if args .command == "install" :
0 commit comments