nascetti-a commited on
Commit
a201c57
·
verified ·
1 Parent(s): 2607aaf

fix secret name

Browse files
Files changed (1) hide show
  1. 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["gee"]["service_account"]
41
- PRIVATE_KEY_B64 = st.secrets["gee"]["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")
 
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")