From 5e2da9bae95ed4c99683e9572ecc32c9e0da5e15 Mon Sep 17 00:00:00 2001 From: Anton Lozhkov Date: Fri, 3 Dec 2021 11:01:29 +0300 Subject: [PATCH] Pass the HfApi object in notebook_login when logging in with a token (#519) --- src/huggingface_hub/commands/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/huggingface_hub/commands/user.py b/src/huggingface_hub/commands/user.py index d6aaa72982..4fb4d2c033 100644 --- a/src/huggingface_hub/commands/user.py +++ b/src/huggingface_hub/commands/user.py @@ -379,7 +379,7 @@ def login_token_event(t): # Erase token and clear value to make sure it's not saved in the notebook. token_widget.value = "" clear_output() - _login(token=token) + _login(HfApi(), token=token) token_finish_button.on_click(login_token_event)