Shengxiao0709 commited on
Commit
ea77d47
·
verified ·
1 Parent(s): 7727a64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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