Anne314159 commited on
Commit
2d0a178
·
verified ·
1 Parent(s): bc1f973

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -8,6 +8,7 @@ import pandas as pd
8
  import numpy as np
9
  import requests
10
  import json
 
11
 
12
 
13
  def fetch_news(topic):
@@ -140,6 +141,7 @@ def page_article_to_social_post():
140
 
141
  # Corrected Function to get a route from OpenRouteService
142
  def get_route(start_coord, end_coord, api_key):
 
143
  url = "https://api.openrouteservice.org/v2/directions/driving-car"
144
  headers = {
145
  'Authorization': api_key,
 
8
  import numpy as np
9
  import requests
10
  import json
11
+ import os
12
 
13
 
14
  def fetch_news(topic):
 
141
 
142
  # Corrected Function to get a route from OpenRouteService
143
  def get_route(start_coord, end_coord, api_key):
144
+ api_key = os.getenv('OPENROUTE_API')
145
  url = "https://api.openrouteservice.org/v2/directions/driving-car"
146
  headers = {
147
  'Authorization': api_key,