Spaces:
Running
Running
Update app.py
Browse files
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
|
| 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")
|