Update app.py
Browse files
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'] =
|
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
|