Spaces:
Runtime error
Runtime error
Resolved merge conflict in app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,6 @@ class Kosmos2:
|
|
103 |
base_height = int(text_height * 0.675)
|
104 |
text_offset_original = text_height - base_height
|
105 |
text_spaces = 3
|
106 |
-
|
107 |
# num_bboxes = sum(len(x[-1]) for x in entities)
|
108 |
used_colors = self.colors # random.sample(colors, k=num_bboxes)
|
109 |
|
@@ -279,7 +278,6 @@ class VehiclePredictor:
|
|
279 |
break # Exit the inner loop once a match is found
|
280 |
if roi is not None:
|
281 |
break # Exit the outer loop once a match is found
|
282 |
-
|
283 |
return roi
|
284 |
|
285 |
# Perform inference on an image
|
|
|
103 |
base_height = int(text_height * 0.675)
|
104 |
text_offset_original = text_height - base_height
|
105 |
text_spaces = 3
|
|
|
106 |
# num_bboxes = sum(len(x[-1]) for x in entities)
|
107 |
used_colors = self.colors # random.sample(colors, k=num_bboxes)
|
108 |
|
|
|
278 |
break # Exit the inner loop once a match is found
|
279 |
if roi is not None:
|
280 |
break # Exit the outer loop once a match is found
|
|
|
281 |
return roi
|
282 |
|
283 |
# Perform inference on an image
|