Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,14 +32,14 @@ with gr.Blocks() as demo:
|
|
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)
|
36 |
|
37 |
# Dataframe and map components
|
38 |
data = gr.Dataframe(row_count=[5, 'dynamic'], interactive=False)
|
39 |
map_component = Folium(height=400)
|
40 |
|
41 |
# Button to reload data and map
|
42 |
-
reload_button = gr.Button("π Reload", elem_id="reload_button")
|
43 |
|
44 |
# Interaction logic
|
45 |
csv_selector.change(update_map, inputs=csv_selector, outputs=[data, map_component])
|
|
|
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)
|
36 |
|
37 |
# Dataframe and map components
|
38 |
data = gr.Dataframe(row_count=[5, 'dynamic'], interactive=False)
|
39 |
map_component = Folium(height=400)
|
40 |
|
41 |
# Button to reload data and map
|
42 |
+
reload_button = gr.Button("π Reload πππ", elem_id="reload_button")
|
43 |
|
44 |
# Interaction logic
|
45 |
csv_selector.change(update_map, inputs=csv_selector, outputs=[data, map_component])
|