Spaces:
Build error
Build error
Download modules/utils.py from DSatishchandra/Solar_Panels_Faults_Detection: direct link, hf CLI and curl.
- Browser
- Download file 127 Bytes
-
https://huggingface.co/spaces/DSatishchandra/Solar_Panels_Faults_Detection/resolve/main/modules/utils.py
- Command line
-
hf download hf://spaces/DSatishchandra/Solar_Panels_Faults_Detection/modules/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/DSatishchandra/Solar_Panels_Faults_Detection/resolve/main/modules/utils.py
127 Bytes
| from PIL import Image | |
| def load_image(image_path): | |
| image = Image.open(image_path) # Load image from path | |
| return image | |