import json import openai with open('GPT_SECRET_KEY.json') as f: data = json.load(f) openai.api_key = data["API_KEY"] from gpt import GPT from gpt import Example gpt = GPT(engine="davinci", temperature=0.6, max_tokens=100)