Omnibus commited on
Commit
6220896
·
verified ·
1 Parent(s): 778cd43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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,None)
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()