Typo in the utils.py file

Hi @caebby,

Firstly, to access your workspace, which has all the files needed in order to run the notebook can be done so by clicking on Menu --> File --> Open... when inside of the Jupyter notebook on the platform. This is where you’ll find the utils.py file, which you can then download.

Secondly, the way it has been set up is that the utils.py file will read the open AI API key from .env file, the visibility of which is not available to the learners, and cannot be used outside of the platform, as it contains our API key. Since you mentioned you are using colab to run the notebook, this won’t work for you as it is.

Now, there are two ways to go about running this using colab:

  1. You can adjust the notebook code or utils.py code that it reads your API directly from the code when running using colab.
  2. You can learn about what .env file is, how to use it using colab and how to populate it by providing your API key by doing a google/chatgpt search. In that case, you should be able to use the code as it is.

Best,
Mubsi

3 Likes