oscarfu0501 commited on
Commit
70698c4
1 Parent(s): a0403c5

Update handler.py

Browse files
Files changed (1) hide show
  1. 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("./best.pt")
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")