map-tiles / app.py
Omnibus's picture
Update app.py
ceb14ca verified
raw
history blame
362 Bytes
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()