curl -H "Authorization: Bearer $token" $scoringUri \
-d '{"data":[[1,2,3,4,5,6,7,8,9,10],[10,9,8,7,6,5,4,3,2,1]]}' \
-H Content-type:application/json
"{\"result\": [5113.099642122809, 3713.6329271385334]}"
{"result": [5113.099642122809, 3713.6329271385334]}
The code should not only return the error message but also set an appropriate HTTP return code.
Returns:
Expected:
Probably we should avoid json.dumps() in:
MLOpsPython/code/scoring/score.py
Line 46 in 41ea9b7
Exceptions are swallowed at
MLOpsPython/code/scoring/score.py
Line 47 in 41ea9b7
The code should not only return the error message but also set an appropriate HTTP return code.