jableable commited on
Commit
df6ee5c
1 Parent(s): df62ecf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -84,7 +84,7 @@ with col2:
84
  if state.coords_submitted:
85
  state.coords_submitted = False
86
  try:
87
- api_key = os.getenv["goog_api"]
88
  url = "https://maps.googleapis.com/maps/api/staticmap?center="+str(state.lat)+","+str(state.lng)+"&zoom=16&size=640x640&maptype=satellite&key="+api_key
89
  buffer = io.BytesIO(urllib.request.urlopen(url).read())
90
  state.img = Image.open(buffer).convert("RGB")
 
84
  if state.coords_submitted:
85
  state.coords_submitted = False
86
  try:
87
+ api_key = os.getenv("goog_api")
88
  url = "https://maps.googleapis.com/maps/api/staticmap?center="+str(state.lat)+","+str(state.lng)+"&zoom=16&size=640x640&maptype=satellite&key="+api_key
89
  buffer = io.BytesIO(urllib.request.urlopen(url).read())
90
  state.img = Image.open(buffer).convert("RGB")