I believe you are trying to run the notebook locally, and in order to do that, you need to have your own hugging face API key.
The code works on the platform, as the API key is provided to you there in a .env
file which is hidden from you. The error you are seeing is because of that, the code is trying to load the API key from the .env
file, and since you don’t have it, it is resulting this error.
After you get your own hugging face API key, you can either load it directly in the notebook or you can try loading it through a .env
file, that choice is up to you.
Best,
Mubsi