Update handler.py
Browse files- handler.py +2 -1
handler.py
CHANGED
@@ -7,7 +7,8 @@ class EndpointHandler():
|
|
7 |
# pseudo:
|
8 |
# self.model= load_model(path)
|
9 |
# yolov8_model_name = 'yolov8_2023-07-19_yolov8m.pt'
|
10 |
-
|
|
|
11 |
|
12 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
13 |
"""
|
|
|
7 |
# pseudo:
|
8 |
# self.model= load_model(path)
|
9 |
# yolov8_model_name = 'yolov8_2023-07-19_yolov8m.pt'
|
10 |
+
print(path)
|
11 |
+
self.model = YOLO('./yolov8_2023-07-19_yolov8m.pt')
|
12 |
|
13 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
14 |
"""
|