Upload folder using huggingface_hub
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -17,7 +17,7 @@ class EndpointHandler:
|
|
| 17 |
self.device = "cpu"
|
| 18 |
|
| 19 |
# Load YOLO model
|
| 20 |
-
self.model = YOLO(
|
| 21 |
print(f"✅ Model loaded on {self.device}")
|
| 22 |
|
| 23 |
def __call__(self, data):
|
|
|
|
| 17 |
self.device = "cpu"
|
| 18 |
|
| 19 |
# Load YOLO model
|
| 20 |
+
self.model = YOLO(model_path)
|
| 21 |
print(f"✅ Model loaded on {self.device}")
|
| 22 |
|
| 23 |
def __call__(self, data):
|