added server logging

This commit is contained in:
2026-05-30 12:15:22 +02:00
parent 0c35dda189
commit 0c6d582241
2 changed files with 12 additions and 17 deletions
+2
View File
@@ -107,6 +107,7 @@ async def predict_face(websocket: WebSocket):
try:
while True:
jpg_bytes = await websocket.receive_bytes()
print("received message")
if time.time() - last < 1:
continue
@@ -142,6 +143,7 @@ async def predict_face(websocket: WebSocket):
ymax = int(bbox[3] * scale_h)
boxes_to_send.append([xmin, ymin, xmax, ymax])
print("sending message")
await websocket.send_json({"bboxes": boxes_to_send})
except WebSocketDisconnect: