I to added my .env into the utils.py.
import os
from dotenv import load_dotenv, find_dotenv
def get_api_key():
_ = load_dotenv('.env') # read local .env file
return os.getenv('GOOGLE_API_KEY')
I to added my .env into the utils.py.
import os
from dotenv import load_dotenv, find_dotenv
def get_api_key():
_ = load_dotenv('.env') # read local .env file
return os.getenv('GOOGLE_API_KEY')