awacke1 commited on
Commit
ebf4636
β€’
1 Parent(s): bdf505f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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