Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -50,7 +50,7 @@ class EndpointHandler():
|
|
| 50 |
A :obj:`list` | `dict`: will be serialized and returned
|
| 51 |
"""
|
| 52 |
# Get the prediction
|
| 53 |
-
result = self.
|
| 54 |
# Get the original image with channel shifted
|
| 55 |
img = result[0].orig_img[:,:,::-1]
|
| 56 |
H, W, _ = img.shape
|
|
|
|
| 50 |
A :obj:`list` | `dict`: will be serialized and returned
|
| 51 |
"""
|
| 52 |
# Get the prediction
|
| 53 |
+
result = self.yolov8_model(data['inputs'])
|
| 54 |
# Get the original image with channel shifted
|
| 55 |
img = result[0].orig_img[:,:,::-1]
|
| 56 |
H, W, _ = img.shape
|