rk68 commited on
Commit
cbb024a
·
verified ·
1 Parent(s): dc92394

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ creds_dict = {
52
  "auth_provider_x509_cert_url": os.getenv("auth_provider_x509_cert_url"),
53
  "client_x509_cert_url": os.getenv("client_x509_cert_url")
54
  }
55
- creds_dict['private_key'] = sa_creds['private_key'].replace('\\n', '\n')
56
  creds = ServiceAccountCredentials.from_json_keyfile_dict(creds_dict, scope)
57
  client = gspread.authorize(creds)
58
  sheet = client.open("RAG").sheet1
 
52
  "auth_provider_x509_cert_url": os.getenv("auth_provider_x509_cert_url"),
53
  "client_x509_cert_url": os.getenv("client_x509_cert_url")
54
  }
55
+ creds_dict['private_key'] = creds_dict['private_key'].replace('\\n', '\n')
56
  creds = ServiceAccountCredentials.from_json_keyfile_dict(creds_dict, scope)
57
  client = gspread.authorize(creds)
58
  sheet = client.open("RAG").sheet1