zihaoz96 commited on
Commit
626c0bb
·
1 Parent(s): def3421

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def predict_image(image):
20
  image = np.expand_dims(image, axis=0)
21
 
22
  classifier = TorchVisionClassifierInference(
23
- model_path = "./models/" + colname + ".pth",
24
  )
25
 
26
  pred = classifier.predict(img=image)
 
20
  image = np.expand_dims(image, axis=0)
21
 
22
  classifier = TorchVisionClassifierInference(
23
+ model_path = "./models/" + colname + "/best_model.pth",
24
  )
25
 
26
  pred = classifier.predict(img=image)