Update handler.py
Browse files- handler.py +5 -1
handler.py
CHANGED
@@ -24,5 +24,9 @@ class EndpointHandler():
|
|
24 |
parameters = data.pop("parameters")
|
25 |
|
26 |
# pass inputs with all kwargs in data
|
27 |
-
|
|
|
|
|
|
|
|
|
28 |
return prediction
|
|
|
24 |
parameters = data.pop("parameters")
|
25 |
|
26 |
# pass inputs with all kwargs in data
|
27 |
+
if parameters:
|
28 |
+
prediction = self.pipe(inputs, **parameters)
|
29 |
+
else:
|
30 |
+
prediction = self.pipe(inputs)
|
31 |
+
|
32 |
return prediction
|