Spaces:
Sleeping
Sleeping
Commit
·
67c7e92
1
Parent(s):
c7d73b1
ported to chatgpt api
Browse files
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='
|
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
|