omarelsayeed commited on
Commit
28aab42
1 Parent(s): c991f81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -269,6 +269,8 @@ def remove_overlapping_and_inside_boxes(boxes, classes):
269
 
270
  def process_r1(r1):
271
  # Step 1: Find the index of the maximum value
 
 
272
  max_index = r1.index(max(r1))
273
  one_index = r1.index(1)
274
  # Step 2: Swap the maximum value with 1
 
269
 
270
  def process_r1(r1):
271
  # Step 1: Find the index of the maximum value
272
+ if len(r1) == 2:
273
+ return r1
274
  max_index = r1.index(max(r1))
275
  one_index = r1.index(1)
276
  # Step 2: Swap the maximum value with 1