Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|