Spaces:
Sleeping
Sleeping
DreamStream-1
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from datetime import datetime
|
|
7 |
import os
|
8 |
|
9 |
# Initialize Google Maps API client securely
|
10 |
-
gmaps = googlemaps.Client(key=os.getenv('
|
11 |
|
12 |
# Function to fetch directions
|
13 |
def get_directions_and_coords(source, destination):
|
|
|
7 |
import os
|
8 |
|
9 |
# Initialize Google Maps API client securely
|
10 |
+
gmaps = googlemaps.Client(key=os.getenv('GOOGLE_API_KEY')) # Fetch API key from Hugging Face secrets
|
11 |
|
12 |
# Function to fetch directions
|
13 |
def get_directions_and_coords(source, destination):
|