Update YOLO login (#17022)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
9f8cf111c4
commit
b5f1a70974
3 changed files with 5 additions and 5 deletions
|
|
@ -63,13 +63,13 @@ def login(api_key: str = None, save=True) -> bool:
|
|||
return True
|
||||
else:
|
||||
# Failed to authenticate with HUB
|
||||
LOGGER.info(f"{PREFIX}Get API key from {api_key_url} and then run 'yolo hub login API_KEY'")
|
||||
LOGGER.info(f"{PREFIX}Get API key from {api_key_url} and then run 'yolo login API_KEY'")
|
||||
return False
|
||||
|
||||
|
||||
def logout():
|
||||
"""
|
||||
Log out of Ultralytics HUB by removing the API key from the settings file. To log in again, use 'yolo hub login'.
|
||||
Log out of Ultralytics HUB by removing the API key from the settings file. To log in again, use 'yolo login'.
|
||||
|
||||
Example:
|
||||
```python
|
||||
|
|
@ -79,7 +79,7 @@ def logout():
|
|||
```
|
||||
"""
|
||||
SETTINGS["api_key"] = ""
|
||||
LOGGER.info(f"{PREFIX}logged out ✅. To log in again, use 'yolo hub login'.")
|
||||
LOGGER.info(f"{PREFIX}logged out ✅. To log in again, use 'yolo login'.")
|
||||
|
||||
|
||||
def reset_model(model_id=""):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue