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