Spaces:
Running
Running
Update convert.py
Browse files- 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}")
|