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()