Spaces:
Runtime error
Runtime error
NimaBoscarino
commited on
Commit
·
1f70f33
1
Parent(s):
a3b29a9
lat typo
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def predict(place):
|
|
16 |
# I don't think I need to do any error handling, I'll just let Gradio manage it. (Test it with a bad place though)
|
17 |
geocode_result = gmaps.geocode(place)
|
18 |
loc = geocode_result[0]['geometry']['location']
|
19 |
-
static_map_url = f"https://maps.googleapis.com/maps/api/streetview?size=400x400&location={loc['
|
20 |
|
21 |
response = requests.get(static_map_url)
|
22 |
img = response.content
|
|
|
16 |
# I don't think I need to do any error handling, I'll just let Gradio manage it. (Test it with a bad place though)
|
17 |
geocode_result = gmaps.geocode(place)
|
18 |
loc = geocode_result[0]['geometry']['location']
|
19 |
+
static_map_url = f"https://maps.googleapis.com/maps/api/streetview?size=400x400&location={loc['lat']},{loc['lng']}&fov=80&heading=70&pitch=0&key={API_KEY}"
|
20 |
|
21 |
response = requests.get(static_map_url)
|
22 |
img = response.content
|