dindizz commited on
Commit
ddb11ae
1 Parent(s): 9a0686b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.chat_completions.create(
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."},