omarelsayeed commited on
Commit
aa04060
·
verified ·
1 Parent(s): faf74d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -41,8 +41,7 @@ def detect_layout(img, conf_threshold, iou_threshold):
41
  return bboxes , classes
42
 
43
  def get_orders(image_path , boxes):
44
- image = Image.open(image_path)
45
- order_predictions = batch_ordering([image], [bboxes], order_model, processor)
46
  return [i.position for i in order_predictions[0].bboxes]
47
 
48
  def draw_bboxes_on_image(image_path, bboxes, classes, reading_order):
 
41
  return bboxes , classes
42
 
43
  def get_orders(image_path , boxes):
44
+ order_predictions = batch_ordering([image_path], [bboxes], order_model, processor)
 
45
  return [i.position for i in order_predictions[0].bboxes]
46
 
47
  def draw_bboxes_on_image(image_path, bboxes, classes, reading_order):