Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from PIL import Image
|
|
| 4 |
def predict(image):
|
| 5 |
pipe = pipeline("image-classification", model="dennisjooo/Birds-Classifier-EfficientNetB2")
|
| 6 |
predictions = pipe(image)
|
| 7 |
-
return {p["label"]: p["score"] for p in predictions}
|
| 8 |
|
| 9 |
import gradio as gr
|
| 10 |
|
|
|
|
| 4 |
def predict(image):
|
| 5 |
pipe = pipeline("image-classification", model="dennisjooo/Birds-Classifier-EfficientNetB2")
|
| 6 |
predictions = pipe(image)
|
| 7 |
+
return {p["label"].title(): p["score"] for p in predictions}
|
| 8 |
|
| 9 |
import gradio as gr
|
| 10 |
|