yanndebray / programming-GPTs

Book available on Amazon 🦜
https://yanndebray.github.io/programming-GPTs/
MIT License
5 stars 1 forks source link

chap 7 - improve GPT-4V object detector with function calling syntax #10

Open yanndebray opened 6 months ago

yanndebray commented 6 months ago
i = 767
prompt = 'Is there at least one car in the image?'
base64_image = base64.b64encode(requests.get(bucket+keys[i]).content).decode('utf-8')
car = vision_function(prompt, base64_image, tools)
print(car)
Image.open(io.BytesIO(requests.get(bucket+keys[i]).content))

image

This shouldn't return {'presence': 'True'}