fix(profiling): skip dataset creation on publish

This commit is contained in:
Pepijn
2026-04-16 12:09:03 +02:00
parent b27e838376
commit 516f39685a
-6
View File
@@ -61,12 +61,6 @@ def upload_targets(
commit_message: str | None = None,
) -> dict[str, str]:
api = HfApi(token=token)
try:
repo_exists = api.repo_exists(repo_id=repo_id, repo_type=repo_type)
except Exception:
repo_exists = True
if not repo_exists:
api.create_repo(repo_id=repo_id, repo_type=repo_type, private=private, exist_ok=True)
uploaded: dict[str, str] = {}
for target in targets:
api.upload_file(