Commit
·
83d24c3
1
Parent(s):
c9cf887
Update handler.py
Browse files- handler.py +2 -3
handler.py
CHANGED
@@ -15,9 +15,8 @@ class EndpointHandler():
|
|
15 |
current_directory = os.getcwd()
|
16 |
logging.info(f'current dir: {current_directory}')
|
17 |
logging.info(f'all files: {os.listdir(path)}')
|
18 |
-
|
19 |
-
|
20 |
-
# print('Yolo model loaded successfully')
|
21 |
|
22 |
|
23 |
def __call__(self, data: Dict) -> Dict:
|
|
|
15 |
current_directory = os.getcwd()
|
16 |
logging.info(f'current dir: {current_directory}')
|
17 |
logging.info(f'all files: {os.listdir(path)}')
|
18 |
+
self.model = YOLO(os.path.join(path, 'yolov8m_detect_usdl.pt'))
|
19 |
+
print('Yolo model loaded successfully')
|
|
|
20 |
|
21 |
|
22 |
def __call__(self, data: Dict) -> Dict:
|