SFconvertbot commited on
Commit
6f2f71c
1 Parent(s): 5affde5

Update convert.py

Browse files
Files changed (1) hide show
  1. convert.py +1 -1
convert.py CHANGED
@@ -260,7 +260,7 @@ def convert(api: "HfApi", model_id: str, revision: Optional[str] = None, force:
260
  info = api.model_info(model_id, revision=revision)
261
  filenames = set(s.rfilename for s in info.siblings)
262
 
263
- with TemporaryDirectory(prefix=os.getenv("HF_HOME", "") + "/") as d:
264
  folder = os.path.join(d, repo_folder_name(repo_id=model_id, repo_type="models"))
265
  os.makedirs(folder)
266
  new_pr = None
 
260
  info = api.model_info(model_id, revision=revision)
261
  filenames = set(s.rfilename for s in info.siblings)
262
 
263
+ with TemporaryDirectory() as d:
264
  folder = os.path.join(d, repo_folder_name(repo_id=model_id, repo_type="models"))
265
  os.makedirs(folder)
266
  new_pr = None