How to run this in myself: from dotenv import load_dotenv, find_dotenv _ = load_dotenv(find_dotenv()) # read local .env file

from dotenv import load_dotenv, find_dotenv
_ = load_dotenv(find_dotenv()) # read local .env file

is a part of code in chatGPT class in deeplearning.AI platform.
This code cannot run properly on my computer environment.
how to run this code

do your have the file in your local drive folder that you are wanting to load while coding on your computer environment.

Error can happen, if all the files related to the assignments are not in your computer or local system.

Regards
DP

I have moved the thread to what I think is the correct forum for that course’s material.

Hi @macqueen

welcome to the community.

To run this notebook locally, you have to install all the packages and dependencies. dotenv it is a python lib to handle sensitive data on your project envirioment. you have to install it and set up a .env file with your chat GPT API key and security tokens.

Look a this topic:

An this one:

I hope this help

Best regards