From b6c5cc67ee1ec780f195dafc3f5586188bf8b015 Mon Sep 17 00:00:00 2001 From: Sai-Suraj-27 Date: Mon, 15 Jul 2024 20:26:17 +0530 Subject: [PATCH] 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. --- src/transformers/commands/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/commands/user.py b/src/transformers/commands/user.py index 938f4c8ea8b616..bf4072ce04689b 100644 --- a/src/transformers/commands/user.py +++ b/src/transformers/commands/user.py @@ -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))