Omkar008 commited on
Commit
5f63c51
·
verified ·
1 Parent(s): 880f7db

Update authenticate.py

Browse files
Files changed (1) hide show
  1. 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