Spaces:
Sleeping
Sleeping
add model transforms
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ categories = ("Aculus Olearius", "Healthy", "Peacock Spot")
|
|
| 12 |
|
| 13 |
|
| 14 |
def classify_health(input_img):
|
| 15 |
-
image = transforms(input_img).unsqueeze(0)
|
| 16 |
probs = model(image)
|
| 17 |
idx = probs.argmax()
|
| 18 |
return dict(zip(categories, map(float, probs)))
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
def classify_health(input_img):
|
| 15 |
+
image = transforms(input_img).unsqueeze(0)
|
| 16 |
probs = model(image)
|
| 17 |
idx = probs.argmax()
|
| 18 |
return dict(zip(categories, map(float, probs)))
|