Fix handler
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -26,7 +26,7 @@ def get_model(device="cpu"):
|
|
| 26 |
|
| 27 |
class EndpointHandler():
|
| 28 |
|
| 29 |
-
def __init__(self):
|
| 30 |
self._model = get_model()
|
| 31 |
|
| 32 |
def __call__(self, data: Dict[str, Any]) -> list[Dict[str, Any]]:
|
|
|
|
| 26 |
|
| 27 |
class EndpointHandler():
|
| 28 |
|
| 29 |
+
def __init__(self, path=""):
|
| 30 |
self._model = get_model()
|
| 31 |
|
| 32 |
def __call__(self, data: Dict[str, Any]) -> list[Dict[str, Any]]:
|