Update functions.py

This commit is contained in:
RayVik 2023-04-28 19:03:57 +03:00 committed by GitHub
parent 6522fa7d02
commit 8d91ea2f21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ def load_image(img):
# The image is a path
if os.path.isfile(img) is not True:
raise ValueError(f"Confirm that {img} exists")
# For reading images with unicode names
with open(img, "rb") as img_f:
chunk = img_f.read()