Adonai Vera
commited on
Commit
·
1ae6cec
1
Parent(s):
d7d1628
Model in private repo
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
4 |
from PIL import Image
|
5 |
|
6 |
# Initialize the pipeline with your model
|
7 |
-
pipe = pipeline("image-classification", model="
|
8 |
|
9 |
def classify_image(image):
|
10 |
# Convert the input image to PIL format
|
@@ -28,7 +28,7 @@ iface = gr.Interface(
|
|
28 |
["examples/RC.jpg"]
|
29 |
],
|
30 |
description="Upload an image to classify its material.",
|
31 |
-
title="
|
32 |
)
|
33 |
|
34 |
# Launch the interface
|
|
|
4 |
from PIL import Image
|
5 |
|
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
|
|
|
28 |
["examples/RC.jpg"]
|
29 |
],
|
30 |
description="Upload an image to classify its material.",
|
31 |
+
title="Defects Classification with AI by Subterra"
|
32 |
)
|
33 |
|
34 |
# Launch the interface
|