Ninad077 commited on
Commit
f78e1d0
·
verified ·
1 Parent(s): 2e74354

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +9 -0
utils.py CHANGED
@@ -42,6 +42,15 @@ def authenticate_bigquery():
42
  return None
43
  return creds
44
 
 
 
 
 
 
 
 
 
 
45
 
46
 
47
  #Load GCP credentials
 
42
  return None
43
  return creds
44
 
45
+ def authenticate_bigquery_updated():
46
+ gcp_credentials = load_gcp_credentials()
47
+ if gcp_credentials:
48
+ gcp_credentials = gcp_credentials.with_scopes([
49
+ "https://www.googleapis.com/auth/cloud-platform",
50
+ "https://www.googleapis.com/auth/drive"
51
+ ])
52
+ return gcp_credentials
53
+ return None
54
 
55
 
56
  #Load GCP credentials