diff --git a/daq/src/aaredaq/server.py b/daq/src/aaredaq/server.py index 2461d926..dbad9690 100644 --- a/daq/src/aaredaq/server.py +++ b/daq/src/aaredaq/server.py @@ -376,6 +376,14 @@ async def alc_ml_bounding_box(token: str = Depends(oauth2_scheme)) -> RasterGrid auth.check_jwt_rw(cfg, auth.parse_token(token)) return daq.ml_bounding_box() + +@app.post("/face_detection/run") +async def face_detection_run(token: str = Depends(oauth2_scheme)) -> dict: + auth.check_jwt_rw(cfg, auth.parse_token(token)) + # Run the DAQ-side routine + result = daq.face_detection() + return result + # Access management @app.get("/access/pgroup") async def pgroup(token: str = Depends(oauth2_scheme)) -> str: