Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,6 +30,9 @@ with gr.Blocks() as demo:
|
|
30 |
gr.Markdown("# πΊοΈ Explore AI Data Maps with Gradio and Folium\n"
|
31 |
"Install this custom component with `pip install gradio_folium` - wheel files in this directory")
|
32 |
|
|
|
|
|
|
|
33 |
# Select box for CSV files
|
34 |
csv_files = list_csv_files()
|
35 |
csv_selector = gr.Dropdown(label="ποΈποΈ Select CSV File πΊοΈβοΈ", choices=csv_files)
|
@@ -39,8 +42,6 @@ with gr.Blocks() as demo:
|
|
39 |
row_count=(5,'static'),
|
40 |
interactive=False
|
41 |
)
|
42 |
-
map_component = Folium(height=400)
|
43 |
-
|
44 |
# Button to reload data and map
|
45 |
reload_button = gr.Button("π Reload πππ", elem_id="reload_button")
|
46 |
|
|
|
30 |
gr.Markdown("# πΊοΈ Explore AI Data Maps with Gradio and Folium\n"
|
31 |
"Install this custom component with `pip install gradio_folium` - wheel files in this directory")
|
32 |
|
33 |
+
# Map
|
34 |
+
map_component = Folium(height=400)
|
35 |
+
|
36 |
# Select box for CSV files
|
37 |
csv_files = list_csv_files()
|
38 |
csv_selector = gr.Dropdown(label="ποΈποΈ Select CSV File πΊοΈβοΈ", choices=csv_files)
|
|
|
42 |
row_count=(5,'static'),
|
43 |
interactive=False
|
44 |
)
|
|
|
|
|
45 |
# Button to reload data and map
|
46 |
reload_button = gr.Button("π Reload πππ", elem_id="reload_button")
|
47 |
|