Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -15,7 +15,7 @@ class EndpointHandler():
|
|
15 |
|
16 |
|
17 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
18 |
-
base64_image = data.pop("
|
19 |
if base64_image is None:
|
20 |
raise ValueError("No image provided")
|
21 |
|
|
|
15 |
|
16 |
|
17 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
18 |
+
base64_image = data.pop("inputs",data)
|
19 |
if base64_image is None:
|
20 |
raise ValueError("No image provided")
|
21 |
|