merve HF staff commited on
Commit
7062e70
β€’
1 Parent(s): 1525ca6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def normalize_bbox(bbox, width, height):
49
  ]
50
 
51
 
52
- def extract_box(image_path, coordinates):
53
  x, y, x2, y2 = coordinates
54
  cropped_image = image.crop((x, y, x2, y2))
55
  return cropped_image
 
49
  ]
50
 
51
 
52
+ def extract_box(image, coordinates):
53
  x, y, x2, y2 = coordinates
54
  cropped_image = image.crop((x, y, x2, y2))
55
  return cropped_image