engralimalik commited on
Commit
ce54f96
·
verified ·
1 Parent(s): eeed2d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -50,4 +50,20 @@ def plot_map(df, center):
50
  # Add data center
51
  folium.Marker(
52
  location=[center[0][0], center[0][1]],
53
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  # Add data center
51
  folium.Marker(
52
  location=[center[0][0], center[0][1]],
53
+ popup="Proposed Data Center",
54
+ icon=folium.Icon(color="red", icon="cloud")
55
+ ).add_to(map)
56
+
57
+ return map
58
+
59
+ # Main function to run the application
60
+ def main():
61
+ url = "https://huggingface.co/spaces/engralimalik/lace/blob/main/data%20barbados.xlsx" # Replace with your actual file URL
62
+ df = load_data(url)
63
+ center = find_data_center(df)
64
+ map = plot_map(df, center)
65
+ map.save("index.html")
66
+ print("Map has been saved as index.html.")
67
+
68
+ if __name__ == "__main__":
69
+ main()