mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
fix: Fixed the arguments in create_repo()
function call (#31947)
* Fixed the arguments in create_repo() function call. * Formatted the code properly using ruff. * Formatted the code more clearly.
This commit is contained in:
parent
907500423d
commit
556a4205f0
@ -185,7 +185,7 @@ class RepoCreateCommand(BaseUserCommand):
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user