Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,8 +13,8 @@ labels = [
|
|
13 |
]
|
14 |
#images = [Image.open(requests.get("https://raw.githubusercontent.com/0-ma/geometric-shape-detector/main/input/exemple_circle.jpg", stream=True).raw),
|
15 |
# Image.open(requests.get("https://raw.githubusercontent.com/0-ma/geometric-shape-detector/main/input/exemple_pentagone.jpg", stream=True).raw)]
|
16 |
-
feature_extractor = AutoImageProcessor.from_pretrained('0-ma/
|
17 |
-
model = AutoModelForImageClassification.from_pretrained('0-ma/
|
18 |
|
19 |
|
20 |
print(predicted_labels)
|
|
|
13 |
]
|
14 |
#images = [Image.open(requests.get("https://raw.githubusercontent.com/0-ma/geometric-shape-detector/main/input/exemple_circle.jpg", stream=True).raw),
|
15 |
# Image.open(requests.get("https://raw.githubusercontent.com/0-ma/geometric-shape-detector/main/input/exemple_pentagone.jpg", stream=True).raw)]
|
16 |
+
feature_extractor = AutoImageProcessor.from_pretrained('0-ma/vit-geometric-shapes-tiny')
|
17 |
+
model = AutoModelForImageClassification.from_pretrained('0-ma/vit-geometric-shapes-tiny')
|
18 |
|
19 |
|
20 |
print(predicted_labels)
|