michaellee8 commited on
Commit
44e8c42
·
1 Parent(s): b9c964e

fix: error

Browse files
Files changed (1) hide show
  1. handler.py +3 -1
handler.py CHANGED
@@ -28,5 +28,7 @@ class EndpointHandler:
28
  raise RuntimeError("missing token")
29
  decoded = jwt.decode(token, PUBLIC_KEY, algorithms=["RS512"])
30
  print("received input from jti=", decoded["jti"])
 
 
31
 
32
- return pipeline(*data)
 
28
  raise RuntimeError("missing token")
29
  decoded = jwt.decode(token, PUBLIC_KEY, algorithms=["RS512"])
30
  print("received input from jti=", decoded["jti"])
31
+ inputs = data.pop("inputs", None)
32
+ parameters = data.pop("parameters", {})
33
 
34
+ return pipeline(inputs, **parameters)