Omnibus commited on
Commit
7d6df95
·
verified ·
1 Parent(s): 891435c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -1,10 +1,14 @@
1
  import os
2
  import gradio as gr
3
- def get_map():
4
  if inp = os.environ.get("PASS"):
5
-
6
  os.system("wget https://download.geofabrik.de/north-america-latest.osm.pbf")
7
  print(done)
8
  with gr.Blocks() as app:
 
 
 
 
9
  fs = gr.FileExplorer()
 
10
  app.launch()
 
1
  import os
2
  import gradio as gr
3
+ 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()