userIdc2024 commited on
Commit
78f1dfc
·
verified ·
1 Parent(s): 798f041

Update app/helperCodes/advance_feature.py

Browse files
Files changed (1) hide show
  1. app/helperCodes/advance_feature.py +1 -1
app/helperCodes/advance_feature.py CHANGED
@@ -11,7 +11,7 @@ def generate_gpt_prompt_advanced_feature(results, sentiment, image_elements, tex
11
  A simplified version of the GPT prompt generation for "Win with Our Data",
12
  where we have 2 winner creative images from URLs.
13
  """
14
- client = OpenAI(api_key=cnf.OPENAI_API_KEY)
15
 
16
  # Retrieve base64 from URLs
17
  response1 = requests.get(results[0]['image_url'])
 
11
  A simplified version of the GPT prompt generation for "Win with Our Data",
12
  where we have 2 winner creative images from URLs.
13
  """
14
+ client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
15
 
16
  # Retrieve base64 from URLs
17
  response1 = requests.get(results[0]['image_url'])