Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def create_map_figure(predictions, cell_ids):
|
|
87 |
colors = ['rgba(0, 255, 0, 0.2)'] * 3 + ['rgba(255, 255, 0, 0.2)'] * 7
|
88 |
|
89 |
for rank, cell_id in enumerate(cell_ids):
|
90 |
-
cell_id = int(cell_id)
|
91 |
polygon = get_s2_cell_polygon(cell_id)
|
92 |
lats, lons = zip(*polygon)
|
93 |
color = colors[rank]
|
|
|
87 |
colors = ['rgba(0, 255, 0, 0.2)'] * 3 + ['rgba(255, 255, 0, 0.2)'] * 7
|
88 |
|
89 |
for rank, cell_id in enumerate(cell_ids):
|
90 |
+
cell_id = int(float(cell_id))
|
91 |
polygon = get_s2_cell_polygon(cell_id)
|
92 |
lats, lons = zip(*polygon)
|
93 |
color = colors[rank]
|