Alealejandrooo commited on
Commit
2aba678
1 Parent(s): f9febf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ from folium import Map
10
  def update_header(file_info):
11
  if file_info is not None:
12
  filename = file_info.split('/')[-1] # Access the filename from the file_info dictionary
13
- header = f"<h1>Postcodes Map: {filename}</h1>" # Update the Markdown content
14
  return header # Continue to pass the file_info to the next function if necessary
15
 
16
  def generate_map(file_path):
@@ -56,7 +56,7 @@ def generate_map(file_path):
56
  with gr.Blocks() as demo:
57
 
58
  with gr.Row():
59
- header = gr.Markdown(("<h1>Postcodes Map</h1>"))
60
 
61
  with gr.Row():
62
  map = Folium(value = Map(location=[51.505303, -0.13902], zoom_start=10), height=700)
 
10
  def update_header(file_info):
11
  if file_info is not None:
12
  filename = file_info.split('/')[-1] # Access the filename from the file_info dictionary
13
+ header = f"<h1>UK Postcodes Map: {filename}</h1>" # Update the Markdown content
14
  return header # Continue to pass the file_info to the next function if necessary
15
 
16
  def generate_map(file_path):
 
56
  with gr.Blocks() as demo:
57
 
58
  with gr.Row():
59
+ header = gr.Markdown(("<h1>UK Postcodes Map</h1>"))
60
 
61
  with gr.Row():
62
  map = Folium(value = Map(location=[51.505303, -0.13902], zoom_start=10), height=700)