Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,8 @@ from torchvision import transforms
|
|
| 11 |
|
| 12 |
classes = {0: "Defective", 1: "Good"}
|
| 13 |
|
| 14 |
-
model_path = "best_int8_openvino_model"
|
|
|
|
| 15 |
|
| 16 |
def load_model_local():
|
| 17 |
detection_model = YOLO(model_path, task='classify') # Load the model
|
|
|
|
| 11 |
|
| 12 |
classes = {0: "Defective", 1: "Good"}
|
| 13 |
|
| 14 |
+
#model_path = "best_int8_openvino_model"
|
| 15 |
+
model_path = "./best.pt"
|
| 16 |
|
| 17 |
def load_model_local():
|
| 18 |
detection_model = YOLO(model_path, task='classify') # Load the model
|