Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,13 @@ with gr.Blocks() as demo:
|
|
34 |
csv_selector = gr.Dropdown(label="Select CSV File", choices=csv_files)
|
35 |
|
36 |
# Dataframe and map components
|
37 |
-
data = gr.Dataframe()
|
38 |
-
map_component = Folium(height=400)
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
# Button to reload data and map
|
41 |
reload_button = gr.Button("🔄 Reload", elem_id="reload_button")
|
|
|
34 |
csv_selector = gr.Dropdown(label="Select CSV File", choices=csv_files)
|
35 |
|
36 |
# Dataframe and map components
|
37 |
+
# data = gr.Dataframe()
|
38 |
+
# map_component = Folium(height=400)
|
39 |
+
|
40 |
+
|
41 |
+
map = Folium(value=Map(location=[25.7617, -80.1918]), height=400)
|
42 |
+
data = gr.DataFrame(value=df, height=200)
|
43 |
+
data.select(select, data, map)
|
44 |
|
45 |
# Button to reload data and map
|
46 |
reload_button = gr.Button("🔄 Reload", elem_id="reload_button")
|