Spaces:
Runtime error
Runtime error
| from pathlib import Path | |
| from PIL import Image | |
| def load_rgb_image(path: str | Path) -> Image.Image: | |
| """Load an image from disk and convert it to RGB.""" | |
| return Image.open(path).convert("RGB") | |