Spaces:
Running
Running
Update authenticate.py
Browse files- authenticate.py +1 -1
authenticate.py
CHANGED
@@ -7,7 +7,7 @@ import os
|
|
7 |
def get_access_token():
|
8 |
# Load service account credentials from JSON file or environment variable
|
9 |
credentials = service_account.Credentials.from_service_account_info(
|
10 |
-
os.getenv('ACCOUNT_CREDS'),
|
11 |
scopes=['https://www.googleapis.com/auth/cloud-platform']
|
12 |
)
|
13 |
|
|
|
7 |
def get_access_token():
|
8 |
# Load service account credentials from JSON file or environment variable
|
9 |
credentials = service_account.Credentials.from_service_account_info(
|
10 |
+
json.loads(os.getenv('ACCOUNT_CREDS')),
|
11 |
scopes=['https://www.googleapis.com/auth/cloud-platform']
|
12 |
)
|
13 |
|