LiamKhoaLe commited on
Commit
33151ff
·
1 Parent(s): 66e3d42

Upd debugs

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -364,6 +364,7 @@ async def detect_animals(file: UploadFile = File(...)):
364
  x2 = int(pred["x"] + pred["width"] / 2)
365
  y2 = int(pred["y"] + pred["height"] / 2)
366
  detections.append(((x1, y1, x2, y2), f"Fish Alert {acc}"))
 
367
  except Exception as e:
368
  print("[Roboflow Fish Error]", e)
369
 
@@ -383,6 +384,7 @@ async def detect_animals(file: UploadFile = File(...)):
383
  x2 = int(pred["x"] + pred["width"] / 2)
384
  y2 = int(pred["y"] + pred["height"] / 2)
385
  detections.append(((x1, y1, x2, y2), f"Bird Alert {acc}"))
 
386
  except Exception as e:
387
  print("[Roboflow Bird Error]", e)
388
 
 
364
  x2 = int(pred["x"] + pred["width"] / 2)
365
  y2 = int(pred["y"] + pred["height"] / 2)
366
  detections.append(((x1, y1, x2, y2), f"Fish Alert {acc}"))
367
+ print("[Roboflow Fish Response]", fish_response)
368
  except Exception as e:
369
  print("[Roboflow Fish Error]", e)
370
 
 
384
  x2 = int(pred["x"] + pred["width"] / 2)
385
  y2 = int(pred["y"] + pred["height"] / 2)
386
  detections.append(((x1, y1, x2, y2), f"Bird Alert {acc}"))
387
+ print("[Roboflow Bird Response]", bird_response)
388
  except Exception as e:
389
  print("[Roboflow Bird Error]", e)
390