changed frombuffer call

This commit is contained in:
stuart committed 2025-12-14 01:18:09 +01:00
1 parent 864ee647ec
commit b185261edc
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ class Symbol:
if isinstance(data["image"], str):
# Decode from base64
image_bytes = base64.b64decode(data["image"])
image_array = np.frombuffer(image_bytes, dtype=np.int32)
image_array = np.frombuffer(image_bytes, dtype=np.uint8)
else:
# From list/array
image_array = np.array(data["image"], dtype=np.int32)