Commit cd7fde2b authored by sleepless-se's avatar sleepless-se
Browse files

show json data

parent 19f30443
Pipeline #68042765 passed with stage
in 12 minutes and 31 seconds
......@@ -86,8 +86,8 @@ def predict():
try:
data = predict_image(data['image'])
data = return_format(data)
print(data)
data = json.dumps(data, cls=MyEncoder)
print('json',data)
return jsonify(data)
except Exception as e:
print(e)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment