From 1f3f6225059665b19b54b551d540441767030c15 Mon Sep 17 00:00:00 2001 From: "yuze.zyz" Date: Mon, 17 Feb 2025 23:54:44 +0800 Subject: [PATCH] fix create_repo --- swift/hub/hub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/hub/hub.py b/swift/hub/hub.py index 7e17f3c1ca..8009925361 100644 --- a/swift/hub/hub.py +++ b/swift/hub/hub.py @@ -376,7 +376,7 @@ def try_login(cls, token: Optional[str] = None) -> bool: @classmethod def create_model_repo(cls, repo_id: str, token: Optional[str] = None, private: bool = False) -> str: - return api.create_model(repo_id, token=token, private=private) + return api.create_repo(repo_id, token=token, private=private) @classmethod def push_to_hub(cls,