donb-hf commited on
Commit
9a473c6
·
1 Parent(s): 5020c09

update detections output

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def detect_brain_tumor(image, seg_input, debug: bool = False):
51
  score = detection['score']
52
  bbox = detection['bbox']
53
  x1, y1, x2, y2 = bbox
54
- annotations.append((f"{label} {score:.2f}", (x1, y1, x2-x1, y2-y1)))
55
 
56
  # Convert image to numpy array if it's not already
57
  if isinstance(image_with_bboxes, Image.Image):
 
51
  score = detection['score']
52
  bbox = detection['bbox']
53
  x1, y1, x2, y2 = bbox
54
+ annotations.append((f"{label} {score:.2f}", (x1, y1, x2, y2)))
55
 
56
  # Convert image to numpy array if it's not already
57
  if isinstance(image_with_bboxes, Image.Image):