Stardragon2099 commited on
Commit
67c7e92
·
1 Parent(s): c7d73b1

ported to chatgpt api

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def predict(img, prompt):
72
  # Upload the image to OpenAI as a file
73
  upload_response = openai.File.create(
74
  file=image_bytes,
75
- purpose='answers' # Purpose can be 'answers' or 'fine-tune', depending on your use case
76
  )
77
 
78
  # Get the file ID from the upload response
 
72
  # Upload the image to OpenAI as a file
73
  upload_response = openai.File.create(
74
  file=image_bytes,
75
+ purpose='vision'
76
  )
77
 
78
  # Get the file ID from the upload response