mmek commited on
Commit
fe49efd
·
1 Parent(s): b3fdddd

add model transforms

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)))