Spaces:
Runtime error
Runtime error
update detections output
Browse files
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
|
| 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):
|