Skip to content

Commit

Permalink
dev(narugo): try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Dec 25, 2023
1 parent c7d50fc commit 9c4341e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hfutils/entry/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def upload(repo_id: str, repo_type: RepoTypeTyping,
if not hf_client.repo_exists(repo_id, repo_type=repo_type):
hf_client.create_repo(repo_id, repo_type=repo_type, exist_ok=True, private=private)
if bool(hf_client.repo_info(repo_id, repo_type=repo_type).private) != bool(private):
hf_client.update_repo_visibility(private=bool(private))
hf_client.update_repo_visibility(repo_id, repo_type=repo_type, private=bool(private))

if file_in_repo:
if archive_in_repo:
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 9c4341e

Please sign in to comment.