Ruff Docstring formatting (#15793)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
d27664216b
commit
776ca86369
60 changed files with 241 additions and 309 deletions
|
|
@ -27,10 +27,14 @@ class Auth:
|
|||
|
||||
def __init__(self, api_key="", verbose=False):
|
||||
"""
|
||||
Initialize the Auth class with an optional API key.
|
||||
Initialize Auth class and authenticate user.
|
||||
|
||||
Handles API key validation, Google Colab authentication, and new key requests. Updates SETTINGS upon successful
|
||||
authentication.
|
||||
|
||||
Args:
|
||||
api_key (str, optional): May be an API key or a combination API key and model ID, i.e. key_id
|
||||
api_key (str): API key or combined key_id format.
|
||||
verbose (bool): Enable verbose logging.
|
||||
"""
|
||||
# Split the input API key in case it contains a combined key_model and keep only the API key part
|
||||
api_key = api_key.split("_")[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue