Skip to content

Commit 5e2da9b

Browse files
authored
Pass the HfApi object in notebook_login when logging in with a token (#519)
1 parent 765f7c7 commit 5e2da9b

File tree

1 file changed

+1
-1
lines changed
  • src/huggingface_hub/commands

1 file changed

+1
-1
lines changed

src/huggingface_hub/commands/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def login_token_event(t):
379379
# Erase token and clear value to make sure it's not saved in the notebook.
380380
token_widget.value = ""
381381
clear_output()
382-
_login(token=token)
382+
_login(HfApi(), token=token)
383383

384384
token_finish_button.on_click(login_token_event)
385385

0 commit comments

Comments
 (0)