mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-22 03:59:42 +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,
|
commit_message: str | None = None,
|
||||||
) -> dict[str, str]:
|
) -> dict[str, str]:
|
||||||
api = HfApi(token=token)
|
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] = {}
|
uploaded: dict[str, str] = {}
|
||||||
for target in targets:
|
for target in targets:
|
||||||
api.upload_file(
|
api.upload_file(
|
||||||
|
|||||||
Reference in New Issue
Block a user