Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def analyze_ad(image):
|
|
32 |
"""
|
33 |
|
34 |
# Send the prompt to GPT-4-turbo for analysis
|
35 |
-
response = openai.
|
36 |
model="gpt-4-turbo",
|
37 |
messages=[
|
38 |
{"role": "system", "content": "You are a marketing expert analyzing an advertisement."},
|
|
|
32 |
"""
|
33 |
|
34 |
# Send the prompt to GPT-4-turbo for analysis
|
35 |
+
response = openai.chat.completions.create(
|
36 |
model="gpt-4-turbo",
|
37 |
messages=[
|
38 |
{"role": "system", "content": "You are a marketing expert analyzing an advertisement."},
|