File size: 362 Bytes
e2d012c
891435c
7d6df95
ceb14ca
891435c
 
 
7d6df95
 
 
 
891435c
7d6df95
891435c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os
import gradio as gr
def get_map(inp):
    if inp == os.environ.get("PASS"):
        os.system("wget https://download.geofabrik.de/north-america-latest.osm.pbf")
print(done)
with gr.Blocks() as app:
    with gr.Row():
        inp_pass=gr.Textbox()
        btn=gr.Button()
    
    fs = gr.FileExplorer()
    btn.click(get_map,inp_pass,None)
app.launch()