Keshav-rejoice commited on
Commit
1418dfd
·
verified ·
1 Parent(s): f1dbecd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -198,7 +198,7 @@ def generate_openai_description(classification, image_bytes):
198
 
199
 
200
  # Call OpenAI with image and text
201
- response = openai.chat.completions.create(
202
  model="gpt-4o",
203
  messages=[
204
  {
@@ -590,7 +590,7 @@ Finishing
590
 
591
 
592
 
593
- response = openai.chat.completions.create(
594
  model="gpt-4o",
595
  messages=[
596
  {
 
198
 
199
 
200
  # Call OpenAI with image and text
201
+ response = openai.ChatCompletion.create(
202
  model="gpt-4o",
203
  messages=[
204
  {
 
590
 
591
 
592
 
593
+ response = openai.ChatCompletion.create(
594
  model="gpt-4o",
595
  messages=[
596
  {