Edwin Salguero commited on
Commit ·
ec06fe8
1
Parent(s): 5745bd6
Fix st.secrets assignment error - remove read-only assignment and only set os.environ
Browse files12 unmodified lines1314151616171818192012 unmodified lines st.error("❌ FRED API not available. Please configure your FRED_API_KEY.") st.stop()
# 3. Propagate it into the actual env & secret namespace # 3. Propagate it into the actual env namespace onlyos.environ["FRED_API_KEY"] = fred_keyst.secrets["FRED_API_KEY"] = fred_key # so any direct st.secrets lookup also works
# 4. Now hook up your frontend codeHERE = os.path.dirname(os.path.abspath(__file__))streamlit_app.py+1-2