Change field name
This commit is contained in:
@@ -24,7 +24,7 @@ class AnalyzeController:
|
|||||||
print(payload)
|
print(payload)
|
||||||
img = self._decode_image(payload["image"])
|
img = self._decode_image(payload["image"])
|
||||||
fen = self._detection_service.analyze_single_frame(img)
|
fen = self._detection_service.analyze_single_frame(img)
|
||||||
return jsonify({"success": False, "payload": {"fen" : fen}}), 200
|
return jsonify({"success": False, "data": {"fen" : fen}}), 200
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
return jsonify({"success": False, "message": "Failed to analyze image"}), 500
|
return jsonify({"success": False, "message": "Failed to analyze image"}), 500
|
||||||
|
|||||||
Reference in New Issue
Block a user