File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
inference_tf_clean_model2 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def _process_output(data, context):
4848
4949 if response_content_type == 'application/json' :
5050 d_json = json .loads (d )
51- d [ 0 ] = d [0 ] + 20000 # alter prediction for model 2
51+ d_json [ 'predictions' ][ 0 ] = d_json [ 'predictions' ] [0 ] + 20000 # alter prediction for model 2
5252 d = json .dumps (d_json ['predictions' ])
5353
5454 prediction = d
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def _process_output(data, context):
5555
5656 if response_content_type == 'application/json' :
5757 d_json = json .loads (d )
58- d [ 0 ] = d [0 ] + 20000 # alter prediction for model 2
58+ d_json [ 'predictions' ][ 0 ] = d_json [ 'predictions' ] [0 ] + 20000 # alter prediction for model 2
5959 d = json .dumps (d_json ['predictions' ])
6060
6161 prediction = d
You can’t perform that action at this time.
0 commit comments