Spaces:
Sleeping
Sleeping
Update backend.py
Browse files- backend.py +1 -1
backend.py
CHANGED
|
@@ -15,7 +15,7 @@ load_dotenv()
|
|
| 15 |
|
| 16 |
key_path = "/tmp/private-key.json"
|
| 17 |
with open(key_path, "w") as f:
|
| 18 |
-
f.write(os.
|
| 19 |
|
| 20 |
service_account = os.getenv("SERVICE_KEY_ID")
|
| 21 |
credentials = ee.ServiceAccountCredentials(service_account, 'private-key.json')
|
|
|
|
| 15 |
|
| 16 |
key_path = "/tmp/private-key.json"
|
| 17 |
with open(key_path, "w") as f:
|
| 18 |
+
f.write(os.getenv("PRIVATE_KEY"))
|
| 19 |
|
| 20 |
service_account = os.getenv("SERVICE_KEY_ID")
|
| 21 |
credentials = ee.ServiceAccountCredentials(service_account, 'private-key.json')
|