I fixed it, you can try to restart the kernel and then run :
!pip install -Uq huggingface_hub
before running any other instructions.
Noticed the same issue was faced elsewhere, where !pip install timm needs to be run at the start : NameError: name 'timm' is not defined