Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HfAPi().create_repo positional arguments to keyword arguments #1732

Closed
wants to merge 1 commit into from

Conversation

fgbelidji
Copy link

Related issue #1724

Copy link

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @fgbelidji , thanks for taking care of this. I've added a comment to also remove the deprecated argument organization.

(note: I am one of the maintainers of huggingface_hub. I really do not mind been tagged on PRs related to it so do not hesitate to do so if you want :) )

token,
repo_name,
token=token,
repo_id=repo_name,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The organization parameter is deprecated and will soon be removed in next release of huggingface_hub (a Warning message should already be printed since version 0.8).

Suggested change is to add organization to the repo id and remove it from the arguments passed to create_repo.

Suggested change
repo_id=repo_name,
repo_id=f"{organization}/{repo_name}",

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Organization might be None though and that would lead to an error I think.

Maybe we should go ahead with #1743 ?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sorry, my bad. Checking this would be better :)

@tomaarsen
Copy link
Collaborator

Resolved by #1743 and later refactored in #2376.

Thanks for raising this PR, though!

  • Tom Aarsen

@tomaarsen tomaarsen closed this Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants