Spaces:
Running
Running
LaurentTRIPIED
commited on
Commit
•
25c012f
1
Parent(s):
8f47c03
Pytorch V0.13
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def display_map(data):
|
|
33 |
m = folium.Map(location=[44.837789, -0.57918], zoom_start=12)
|
34 |
for item in data:
|
35 |
point_geo = item.get('point_geo')
|
36 |
-
if point_geo:
|
37 |
lon = point_geo.get('lon')
|
38 |
lat = point_geo.get('lat')
|
39 |
if lon and lat:
|
|
|
33 |
m = folium.Map(location=[44.837789, -0.57918], zoom_start=12)
|
34 |
for item in data:
|
35 |
point_geo = item.get('point_geo')
|
36 |
+
if isinstance(point_geo, dict):
|
37 |
lon = point_geo.get('lon')
|
38 |
lat = point_geo.get('lat')
|
39 |
if lon and lat:
|