mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-16 17:20:05 +00:00
fix(profiling): skip dataset creation on publish
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user