Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -8,7 +8,7 @@ from ultralytics import YOLO
|
|
8 |
|
9 |
class EndpointHandler:
|
10 |
def __init__(self, path='.'): # pass api key to model
|
11 |
-
self.model = YOLO("
|
12 |
|
13 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
14 |
inputs = data.get("inputs")
|
|
|
8 |
|
9 |
class EndpointHandler:
|
10 |
def __init__(self, path='.'): # pass api key to model
|
11 |
+
self.model = YOLO("../best.pt")
|
12 |
|
13 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
14 |
inputs = data.get("inputs")
|