From 696d50705eb04a8f3452bf5c6d91ef1ca85e8761 Mon Sep 17 00:00:00 2001 From: Lucain Pouget Date: Thu, 22 Sep 2022 14:21:00 +0200 Subject: [PATCH] FIX notebook login --- 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 e06b13672a..1fe9ea9405 100644 --- a/src/huggingface_hub/commands/user.py +++ b/src/huggingface_hub/commands/user.py @@ -307,7 +307,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(hf_api=HfApi(), token=token) token_finish_button.on_click(login_token_event)