Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ with open('DB/class_names.json', 'r', encoding='utf-8') as f:
|
|
| 29 |
classes = json.load(f)
|
| 30 |
|
| 31 |
# Constants
|
| 32 |
-
|
| 33 |
|
| 34 |
def get_image_from_dataset(bird_name, image_filename):
|
| 35 |
"""
|
|
@@ -73,7 +73,7 @@ def create_map():
|
|
| 73 |
"""
|
| 74 |
Create an interactive map with bird sightings
|
| 75 |
"""
|
| 76 |
-
m = folium.Map(location=
|
| 77 |
|
| 78 |
dshs_popup_content = f"""
|
| 79 |
<div>
|
|
@@ -83,7 +83,7 @@ def create_map():
|
|
| 83 |
|
| 84 |
# 대전과학고 마커 추가
|
| 85 |
folium.Marker(
|
| 86 |
-
|
| 87 |
popup=folium.Popup(dshs_popup_content, max_width=300),
|
| 88 |
tooltip="대전과학고등학교"
|
| 89 |
).add_to(m)
|
|
|
|
| 29 |
classes = json.load(f)
|
| 30 |
|
| 31 |
# Constants
|
| 32 |
+
DSHS_LOCATION = [36.373719, 127.370415]
|
| 33 |
|
| 34 |
def get_image_from_dataset(bird_name, image_filename):
|
| 35 |
"""
|
|
|
|
| 73 |
"""
|
| 74 |
Create an interactive map with bird sightings
|
| 75 |
"""
|
| 76 |
+
m = folium.Map(location=DSHS_LOCATION, zoom_start=15)
|
| 77 |
|
| 78 |
dshs_popup_content = f"""
|
| 79 |
<div>
|
|
|
|
| 83 |
|
| 84 |
# 대전과학고 마커 추가
|
| 85 |
folium.Marker(
|
| 86 |
+
DSHS_LOCATION,
|
| 87 |
popup=folium.Popup(dshs_popup_content, max_width=300),
|
| 88 |
tooltip="대전과학고등학교"
|
| 89 |
).add_to(m)
|