in pytorch_code/classifier/classifier.py [0:0]
def output_fn(prediction, accept=JSON_CONTENT_TYPE):
print('Serializing the generated output.')
if accept == JSON_CONTENT_TYPE: return json.dumps(prediction), accept
raise Exception('Requested unsupported ContentType in Accept: {}'.format(accept))