Spaces:
Sleeping
Sleeping
Trial new model
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ from transformers import pipeline
|
|
| 2 |
from PIL import Image
|
| 3 |
|
| 4 |
def predict(image):
|
| 5 |
-
pipe = pipeline("image-classification", model="
|
| 6 |
predictions = pipe(image)
|
| 7 |
return {p["label"].title(): p["score"] for p in predictions}
|
| 8 |
|
|
|
|
| 2 |
from PIL import Image
|
| 3 |
|
| 4 |
def predict(image):
|
| 5 |
+
pipe = pipeline("image-classification", model="chriamue/bird-species-classifier")
|
| 6 |
predictions = pipe(image)
|
| 7 |
return {p["label"].title(): p["score"] for p in predictions}
|
| 8 |
|