Skip to content

Commit

Permalink
[CLEANUP]
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Dec 1, 2023
1 parent a37b314 commit a8449d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swarms/models/gpt4_vision_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def encode_image(self, img: str):
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")

Expand Down

0 comments on commit a8449d2

Please sign in to comment.