The colab page contains several codes to deal with huggingface api Some people may benefit from it Put your key in place xxxxxxxxx https://huggingface.co/docs/api-inference/detailed_parameters