The colab page contains several codes to deal with huggingface api Some people may benefit from it
Put your key in place xxxxxxxxx