oscarfu0501 commited on
Commit
82559f3
1 Parent(s): 23eb631

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -19,9 +19,9 @@ class EndpointHandler:
19
  # print("Current working directory:", current_directory)
20
 
21
  url = "https://drive.google.com/file/d/1jB8sDYYOTfuF7B1PMcDjkm5R7huv97Wm/view?usp=sharing"
22
- gdown.download(url, './best.pt', quiet=False)
23
 
24
- self.model = YOLO("./best.pt")
25
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
26
  inputs = data.get("inputs")
27
  print("in call")
 
19
  # print("Current working directory:", current_directory)
20
 
21
  url = "https://drive.google.com/file/d/1jB8sDYYOTfuF7B1PMcDjkm5R7huv97Wm/view?usp=sharing"
22
+ gdown.download(url, 'best.pt', quiet=False)
23
 
24
+ self.model = YOLO("best.pt")
25
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
26
  inputs = data.get("inputs")
27
  print("in call")