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

Update app.py

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