yanndebray / programming-GPTs

Book in writing ... 🦜
https://yanndebray.github.io/programming-GPTs/
MIT License
3 stars 0 forks source link

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

Open yanndebray opened 1 month ago

yanndebray commented 1 month 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'}