Spaces:
Sleeping
Sleeping
Update app/helperCodes/advance_feature.py
Browse files
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=
|
| 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'])
|