Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,7 +106,7 @@ def parse_first_bbox(bboxes):
|
|
| 106 |
x, y = float(b.get("x", 0)), float(b.get("y", 0))
|
| 107 |
w, h = float(b.get("width", 0)), float(b.get("height", 0))
|
| 108 |
return x, y, x + w, y + h
|
| 109 |
-
if isinstance(b, (list, tuple)) and len(b) >= 4
|
| 110 |
return float(b[0]), float(b[1]), float(b[2]), float(b[3])
|
| 111 |
return None
|
| 112 |
|
|
|
|
| 106 |
x, y = float(b.get("x", 0)), float(b.get("y", 0))
|
| 107 |
w, h = float(b.get("width", 0)), float(b.get("height", 0))
|
| 108 |
return x, y, x + w, y + h
|
| 109 |
+
if isinstance(b, (list, tuple)) and len(b) >= 4:
|
| 110 |
return float(b[0]), float(b[1]), float(b[2]), float(b[3])
|
| 111 |
return None
|
| 112 |
|