English
detection
open-world
open-set
Inference Endpoints
kelvinou01 commited on
Commit
0172050
1 Parent(s): d846043

Update handler

Browse files
Files changed (2) hide show
  1. .gitignore +2 -0
  2. handler.py +3 -2
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ test_hf.py
2
+ venv/
handler.py CHANGED
@@ -14,8 +14,9 @@ class EndpointHandler():
14
  Return:
15
  A :obj:`list` | `dict`: will be serialized and returned
16
  """
17
- image = data.pop("image")
18
- prompt = data.pop("prompt")
 
19
 
20
  return [{
21
  "image": image,
 
14
  Return:
15
  A :obj:`list` | `dict`: will be serialized and returned
16
  """
17
+ inputs = data.pop("inputs")
18
+ image = inputs.pop("image")
19
+ prompt = inputs.pop("prompt")
20
 
21
  return [{
22
  "image": image,