Skip to content

Commit

Permalink
Pass the HfApi object in notebook_login when logging in with a token (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-l authored Dec 3, 2021
1 parent 765f7c7 commit 5e2da9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/huggingface_hub/commands/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5e2da9b

Please sign in to comment.