Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ class StoreLocator:
|
|
79 |
self.spatial_index = self._build_spatial_index()
|
80 |
|
81 |
@lru_cache(maxsize=50)
|
82 |
-
def initialize_graph(self, center_point, dist=
|
83 |
"""Initialize road network graph with caching"""
|
84 |
cache_key = f"{center_point[0]}_{center_point[1]}"
|
85 |
if cache_key in self.graph_cache:
|
|
|
79 |
self.spatial_index = self._build_spatial_index()
|
80 |
|
81 |
@lru_cache(maxsize=50)
|
82 |
+
def initialize_graph(self, center_point, dist=30000): # Reduced distance for memory optimization
|
83 |
"""Initialize road network graph with caching"""
|
84 |
cache_key = f"{center_point[0]}_{center_point[1]}"
|
85 |
if cache_key in self.graph_cache:
|