Adonai Vera
commited on
Commit
·
e0834a0
1
Parent(s):
1ae6cec
ready for test
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ from PIL import Image
|
|
6 |
# Initialize the pipeline with your model
|
7 |
pipe = pipeline("image-classification", model="SubterraAI/ofwat_defects_classification")
|
8 |
|
|
|
9 |
def classify_image(image):
|
10 |
# Convert the input image to PIL format
|
11 |
PIL_image = Image.fromarray(image).convert('RGB')
|
|
|
6 |
# Initialize the pipeline with your model
|
7 |
pipe = pipeline("image-classification", model="SubterraAI/ofwat_defects_classification")
|
8 |
|
9 |
+
|
10 |
def classify_image(image):
|
11 |
# Convert the input image to PIL format
|
12 |
PIL_image = Image.fromarray(image).convert('RGB')
|