pull/233/head
Kye 1 year ago
parent a37b314f72
commit a8449d2625

@ -108,7 +108,7 @@ class GPT4VisionAPI:
if not os.path.exists(img):
print(f"Image file not found: {img}")
return None
with open(img, "rb") as image_file:
return base64.b64encode(image_file.read()).decode("utf-8")

Loading…
Cancel
Save