Why I cannot import the get_api_key ? Please help

Hi,
Are you running this locally?

Yeah ,

I think this course is not meant to run locally. Since the key is already set when running in the notebook from the course (as said on the first video).

Hi @BISHWANATH_JANA

Welcome to the community.

Keep in mind that the course platform had all de API settings already set. That means that if you try to run locally you have to set your own API credentials.

best regards

How I set my own API credentials ?? Please help .

First, you have to install the dotenv package from pypi:

Second, you have to download the utils.py package from the course platform by:

  1. Clicking on the jupyter logo
  2. Clicking on the utils.py package > file > download

After download this files, you have to setting your google API key on the .env file in your project root folder.

You can do that by following this tutorial:

Keep in mind that you have to keep on the files in one single structure path in order to get it right.

I hope this help

Best regards

2 Likes

Its work! Thank you so much sir .

1 Like

I’m glad to help.

Have a great learning :heart:

1 Like