Narsil HF staff commited on
Commit
795abe7
1 Parent(s): 89cc842

Update convert.py

Browse files
Files changed (1) hide show
  1. convert.py +2 -2
convert.py CHANGED
@@ -80,7 +80,7 @@ def convert_multi(model_id: str, folder: str, api: "HfApi") -> ConversionResult:
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)],
85
  create_pr=False,
86
  )
@@ -200,7 +200,7 @@ def convert_generic(model_id: str, folder: str, filenames: Set[str], api: "HfApi
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)],
205
  create_pr=False,
206
  )
 
80
  api.create_commit(
81
  repo_id=model_id,
82
  commit_message=f"Adds {sf_filename}",
83
+ revision=new_pr.pr_revision,
84
  operations=[CommitOperationAdd(path_in_repo=sf_filename.split("/")[-1], path_or_fileobj=sf_filename)],
85
  create_pr=False,
86
  )
 
200
  api.create_commit(
201
  repo_id=model_id,
202
  commit_message=f"Adds {sf_filename}",
203
+ revision=new_pr.pr_revision,
204
  operations=[CommitOperationAdd(path_in_repo=sf_in_repo, path_or_fileobj=sf_filename)],
205
  create_pr=False,
206
  )