halimb commited on
Commit
ead4cda
1 Parent(s): 9b01bc0

Update handler.py

Browse files
Files changed (1) hide show
  1. 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("image",data)
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