oopsie
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from flask import jsonify
|
||||
from flask import jsonify, request
|
||||
|
||||
from src.services.detection_service import DetectionService
|
||||
|
||||
@@ -16,7 +16,9 @@ class AnalyzeController:
|
||||
|
||||
def analyze(self):
|
||||
try :
|
||||
fen = self._detection_service.analyze_single_frame(None)
|
||||
payload = request.get_json()
|
||||
print(payload)
|
||||
fen = self._detection_service.analyze_single_frame(payload["image"])
|
||||
return jsonify({"success": False, "payload": {"fen" : fen}}), 200
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
Reference in New Issue
Block a user