Update app.py
Browse files
app.py
CHANGED
@@ -4,11 +4,12 @@ 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 |
with gr.Blocks() as app:
|
8 |
with gr.Row():
|
9 |
inp_pass=gr.Textbox()
|
10 |
btn=gr.Button()
|
11 |
|
12 |
fs = gr.FileExplorer()
|
13 |
-
btn.click(get_map,inp_pass,
|
14 |
app.launch()
|
|
|
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():
|
10 |
inp_pass=gr.Textbox()
|
11 |
btn=gr.Button()
|
12 |
|
13 |
fs = gr.FileExplorer()
|
14 |
+
btn.click(get_map,inp_pass,fs)
|
15 |
app.launch()
|