Spaces:
Runtime error
Runtime error
File size: 187 Bytes
57e3eaa |
1 2 3 4 5 6 7 8 9 |
from io import BytesIO
from PIL import Image
def convert_bytes_to_pil(bytes_string: bytes) -> Image:
buffer = BytesIO(bytes_string)
buffer.seek(0)
return Image.open(buffer)
|