Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -283,7 +283,7 @@ def build_export_button(map_var_name):
|
|
| 283 |
|
| 284 |
function finish() {{
|
| 285 |
var link = document.createElement('a');
|
| 286 |
-
link.download = '
|
| 287 |
link.href = mapCanvas.toDataURL('image/png');
|
| 288 |
document.body.appendChild(link);
|
| 289 |
link.click();
|
|
@@ -477,10 +477,10 @@ def generate_map(
|
|
| 477 |
# Gradio UI
|
| 478 |
# ββββββββββββββββββββββββββββββββββββββββββββββ
|
| 479 |
|
| 480 |
-
with gr.Blocks(title="
|
| 481 |
|
| 482 |
gr.Markdown("""
|
| 483 |
-
# πΊοΈ
|
| 484 |
Upload the xlsx file β sections and columns are detected automatically from the header rows.
|
| 485 |
Choose data types, optionally filter by state or city, then generate the map.
|
| 486 |
""")
|
|
|
|
| 283 |
|
| 284 |
function finish() {{
|
| 285 |
var link = document.createElement('a');
|
| 286 |
+
link.download = 'locations-map.png';
|
| 287 |
link.href = mapCanvas.toDataURL('image/png');
|
| 288 |
document.body.appendChild(link);
|
| 289 |
link.click();
|
|
|
|
| 477 |
# Gradio UI
|
| 478 |
# ββββββββββββββββββββββββββββββββββββββββββββββ
|
| 479 |
|
| 480 |
+
with gr.Blocks(title="Locations Map Germany", theme=gr.themes.Soft()) as demo:
|
| 481 |
|
| 482 |
gr.Markdown("""
|
| 483 |
+
# πΊοΈ Locations in Germany
|
| 484 |
Upload the xlsx file β sections and columns are detected automatically from the header rows.
|
| 485 |
Choose data types, optionally filter by state or city, then generate the map.
|
| 486 |
""")
|