Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ import pandas as pd
|
|
7 |
import asyncio
|
8 |
from gradio_folium import Folium
|
9 |
import folium
|
|
|
10 |
from huggingface_hub import InferenceClient
|
11 |
from geopy.geocoders import Nominatim
|
12 |
from collections import OrderedDict
|
@@ -183,7 +184,7 @@ def create_map_from_markers(dataframe):
|
|
183 |
)
|
184 |
marker.add_to(f_map),
|
185 |
|
186 |
-
|
187 |
|
188 |
bounds = [[row["lat"], row["lon"]] for _, row in dataframe.iterrows()]
|
189 |
f_map.fit_bounds(bounds, padding=(100, 100))
|
|
|
7 |
import asyncio
|
8 |
from gradio_folium import Folium
|
9 |
import folium
|
10 |
+
from folium.plugins import Fullscreen
|
11 |
from huggingface_hub import InferenceClient
|
12 |
from geopy.geocoders import Nominatim
|
13 |
from collections import OrderedDict
|
|
|
184 |
)
|
185 |
marker.add_to(f_map),
|
186 |
|
187 |
+
Fullscreen(position='topright', title='Expand me', title_cancel='Exit me', force_separate_button=True).add_to(f_map)
|
188 |
|
189 |
bounds = [[row["lat"], row["lon"]] for _, row in dataframe.iterrows()]
|
190 |
f_map.fit_bounds(bounds, padding=(100, 100))
|