lysandre HF Staff commited on
Commit
37a6a61
·
verified ·
1 Parent(s): bd5c5f6

Update convert.py

Browse files
Files changed (1) hide show
  1. convert.py +1 -1
convert.py CHANGED
@@ -289,7 +289,7 @@ def convert(
289
 
290
  if any(filename.endswith(".safetensors") for filename in filenames) and not force:
291
  raise AlreadyExists(f"Model {model_id} is already converted, skipping..")
292
- elif pr is not None and not force:
293
  url = f"https://huggingface.co/{model_id}/discussions/{pr.num}"
294
  new_pr = pr
295
  raise AlreadyExists(f"Model {model_id} already has an open PR check out {url}")
 
289
 
290
  if any(filename.endswith(".safetensors") for filename in filenames) and not force:
291
  raise AlreadyExists(f"Model {model_id} is already converted, skipping..")
292
+ elif (pr is not None and pr.author == 'SFconvertbot') and not force:
293
  url = f"https://huggingface.co/{model_id}/discussions/{pr.num}"
294
  new_pr = pr
295
  raise AlreadyExists(f"Model {model_id} already has an open PR check out {url}")