Pijush2023 commited on
Commit
baa6ed0
·
verified ·
1 Parent(s): 1407881

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1202,13 +1202,14 @@ def generate_map(location_names):
1202
  if geocode_result:
1203
  location = geocode_result[0]['geometry']['location']
1204
  folium.Marker(
1205
- [location['lat'], 'lng']],
1206
  tooltip=f"{geocode_result[0]['formatted_address']}"
1207
  ).add_to(m)
1208
 
1209
  map_html = m._repr_html_()
1210
  return map_html
1211
 
 
1212
  def fetch_local_news():
1213
  api_key = os.environ['SERP_API']
1214
  url = f'https://serpapi.com/search.json?engine=google_news&q=omaha headline&api_key={api_key}'
 
1202
  if geocode_result:
1203
  location = geocode_result[0]['geometry']['location']
1204
  folium.Marker(
1205
+ [location['lat'], location['lng']],
1206
  tooltip=f"{geocode_result[0]['formatted_address']}"
1207
  ).add_to(m)
1208
 
1209
  map_html = m._repr_html_()
1210
  return map_html
1211
 
1212
+
1213
  def fetch_local_news():
1214
  api_key = os.environ['SERP_API']
1215
  url = f'https://serpapi.com/search.json?engine=google_news&q=omaha headline&api_key={api_key}'