Commit
·
db99c4e
1
Parent(s):
11aa7c8
Update handler.py
Browse files- handler.py +2 -3
handler.py
CHANGED
|
@@ -20,11 +20,10 @@ class EndpointHandler():
|
|
| 20 |
self.pipe = self.pipe.to(device)
|
| 21 |
|
| 22 |
|
| 23 |
-
def __call__(self, data: Any) -> List[
|
| 24 |
"""
|
| 25 |
Args:
|
| 26 |
-
|
| 27 |
-
includes the input data and the parameters for the inference.
|
| 28 |
Return:
|
| 29 |
A :obj:`dict`:. base64 encoded image
|
| 30 |
"""
|
|
|
|
| 20 |
self.pipe = self.pipe.to(device)
|
| 21 |
|
| 22 |
|
| 23 |
+
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
| 24 |
"""
|
| 25 |
Args:
|
| 26 |
+
images (:obj:`string`)
|
|
|
|
| 27 |
Return:
|
| 28 |
A :obj:`dict`:. base64 encoded image
|
| 29 |
"""
|