Update app.py
Browse files
app.py
CHANGED
|
@@ -209,7 +209,8 @@ def main():
|
|
| 209 |
filtered_entities = []
|
| 210 |
for entity in entities:
|
| 211 |
entity_name, (start, end), bboxes = entity
|
| 212 |
-
if start
|
|
|
|
| 213 |
continue
|
| 214 |
color_id += 1
|
| 215 |
# for bbox_id, _ in enumerate(bboxes):
|
|
|
|
| 209 |
filtered_entities = []
|
| 210 |
for entity in entities:
|
| 211 |
entity_name, (start, end), bboxes = entity
|
| 212 |
+
if start == end:
|
| 213 |
+
# skip bounding bbox without a `phrase` associated
|
| 214 |
continue
|
| 215 |
color_id += 1
|
| 216 |
# for bbox_id, _ in enumerate(bboxes):
|