oscarfu0501 commited on
Commit
20fa134
1 Parent(s): 3906f8f

Update handler.py

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