Spaces:
Sleeping
Sleeping
fix secret name
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -37,8 +37,8 @@ def initialize_ee_session():
|
|
| 37 |
"""Initializes the Earth Engine session and caches the result."""
|
| 38 |
try:
|
| 39 |
# Ensure secrets are available
|
| 40 |
-
SERVICE_ACCOUNT = st.secrets["
|
| 41 |
-
PRIVATE_KEY_B64 = st.secrets["
|
| 42 |
|
| 43 |
# Decode the private key and write it to a temporary file for ee.Initialize
|
| 44 |
decoded = base64.b64decode(PRIVATE_KEY_B64).decode("utf-8")
|
|
|
|
| 37 |
"""Initializes the Earth Engine session and caches the result."""
|
| 38 |
try:
|
| 39 |
# Ensure secrets are available
|
| 40 |
+
SERVICE_ACCOUNT = st.secrets["service_account"]
|
| 41 |
+
PRIVATE_KEY_B64 = st.secrets["private_key"]
|
| 42 |
|
| 43 |
# Decode the private key and write it to a temporary file for ee.Initialize
|
| 44 |
decoded = base64.b64decode(PRIVATE_KEY_B64).decode("utf-8")
|