Skip to content

Commit

Permalink
fix: Fixed the arguments in create_repo() function call (huggingfac…
Browse files Browse the repository at this point in the history
…e#31947)

* Fixed the arguments in create_repo() function call.

* Formatted the code properly using ruff.

* Formatted the code more clearly.
  • Loading branch information
Sai-Suraj-27 authored and zucchini-nlp committed Jul 24, 2024
1 parent 164c0af commit b6c5cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/commands/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def run(self):
print("Abort")
exit()
try:
url = create_repo(token, name=self.args.name, organization=self.args.organization)
url = create_repo(repo_id=full_name, token=token)
except HTTPError as e:
print(e)
print(ANSI.red(e.response.text))
Expand Down

0 comments on commit b6c5cc6

Please sign in to comment.