Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -6,8 +6,8 @@ class EndpointHandler():
|
|
6 |
# Preload all the elements you are going to need at inference.
|
7 |
# pseudo:
|
8 |
# self.model= load_model(path)
|
9 |
-
yolov8_model_name = 'yolov8_2023-07-19_yolov8m.pt'
|
10 |
-
self.model = YOLO(
|
11 |
|
12 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
13 |
"""
|
|
|
6 |
# Preload all the elements you are going to need at inference.
|
7 |
# pseudo:
|
8 |
# self.model= load_model(path)
|
9 |
+
# yolov8_model_name = 'yolov8_2023-07-19_yolov8m.pt'
|
10 |
+
self.model = YOLO(path)
|
11 |
|
12 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
13 |
"""
|