Narsil HF staff commited on
Commit
89cc842
1 Parent(s): 4a04f8f

Update convert.py

Browse files
Files changed (1) hide show
  1. convert.py +2 -2
convert.py CHANGED
@@ -78,7 +78,7 @@ def convert_multi(model_id: str, folder: str, api: "HfApi") -> ConversionResult:
78
  sf_filename = os.path.join(folder, sf_filename)
79
  convert_file(pt_filename, sf_filename)
80
  api.create_commit(
81
- repo_id=repo_id,
82
  commit_message=f"Adds {sf_filename}",
83
  revision=new_pr.git_reference,
84
  operations=[CommitOperationAdd(path_in_repo=sf_filename.split("/")[-1], path_or_fileobj=sf_filename)],
@@ -198,7 +198,7 @@ def convert_generic(model_id: str, folder: str, filenames: Set[str], api: "HfApi
198
  )
199
  else:
200
  api.create_commit(
201
- repo_id=repo_id,
202
  commit_message=f"Adds {sf_filename}",
203
  revision=new_pr.git_reference,
204
  operations=[CommitOperationAdd(path_in_repo=sf_in_repo, path_or_fileobj=sf_filename)],
 
78
  sf_filename = os.path.join(folder, sf_filename)
79
  convert_file(pt_filename, sf_filename)
80
  api.create_commit(
81
+ repo_id=model_id,
82
  commit_message=f"Adds {sf_filename}",
83
  revision=new_pr.git_reference,
84
  operations=[CommitOperationAdd(path_in_repo=sf_filename.split("/")[-1], path_or_fileobj=sf_filename)],
 
198
  )
199
  else:
200
  api.create_commit(
201
+ repo_id=model_id,
202
  commit_message=f"Adds {sf_filename}",
203
  revision=new_pr.git_reference,
204
  operations=[CommitOperationAdd(path_in_repo=sf_in_repo, path_or_fileobj=sf_filename)],