Currently, in the scripts/training_data_creator.py , the API is being load using this function
def get_api_key(api_key_file="/home/thor_x_me/PycharmProjects/Lucknow-LLM-data/scripts/API_KEY.txt"):
"""
:param api_key_file: Path of API key saved in a text file
:return: API key string
"""
with open(api_key_file) as key:
api_key = key.read()
return api_key
GOOGLE_API_KEY = get_api_key()
This code contain a local directory structure to the API_KEY.txt file which contain the API keys.
This Could be removed in favour of a .env file which can store the google API key and then this key can be added using the dotenv-python package