Spaces:
Runtime error
Runtime error
Johannes
commited on
Commit
·
5b57bc4
1
Parent(s):
5162dce
fix type annotation
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def get_coordinates_from_mask(mask_in):
|
|
18 |
|
19 |
return centroids
|
20 |
|
21 |
-
def get_top_bottom_coordinates(coords: list[list[int,int]]) -> (list[int,int],list[int,int]):
|
22 |
top_coord = min(coords, key=lambda x : x[1])
|
23 |
bottom_coord = max(coords, key=lambda x : x[1])
|
24 |
|
|
|
18 |
|
19 |
return centroids
|
20 |
|
21 |
+
def get_top_bottom_coordinates(coords: list[list[int,int]]) -> tuple(list[int,int],list[int,int]):
|
22 |
top_coord = min(coords, key=lambda x : x[1])
|
23 |
bottom_coord = max(coords, key=lambda x : x[1])
|
24 |
|