Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,11 @@ import os
|
|
2 |
import gradio as gr
|
3 |
def get_map(inp):
|
4 |
if inp == os.environ.get("PASS"):
|
|
|
5 |
os.system("wget https://download.geofabrik.de/north-america-latest.osm.pbf")
|
6 |
print("done")
|
|
|
|
|
7 |
return gr.update()
|
8 |
with gr.Blocks() as app:
|
9 |
with gr.Row():
|
|
|
2 |
import gradio as gr
|
3 |
def get_map(inp):
|
4 |
if inp == os.environ.get("PASS"):
|
5 |
+
print("downloading")
|
6 |
os.system("wget https://download.geofabrik.de/north-america-latest.osm.pbf")
|
7 |
print("done")
|
8 |
+
out = os.path.abspath("north-america-latest.osm.pbf")
|
9 |
+
print (out)
|
10 |
return gr.update()
|
11 |
with gr.Blocks() as app:
|
12 |
with gr.Row():
|