(nit) Proper login in status_checker

#1
by Wauplin HF staff - opened

Since huggingface_hub>=0.11, you can use the generic login(token:Optional[str] = None)method anywhere.

If you provide a token, it will be saved. If None, it will prompt the user for a token either in a notebook widget (equivalent of notebook_login) or in the terminal (equivalent of huggingface-cli login) => it is not the preferred way to login on any machine, regardless of the setup (notebook or script). Not sure it will play nicely in a Space if HF_TOKEN is not set but HfFolder.save_token would have also failed anyway so let's assume it's set.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment