Update handler.py
Browse files- 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 |
|