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 lines13141516171819202112 unmodified linesst.error("❌ FRED API not available. Please configure your FRED_API_KEY.")st.stop()# 3. Propagate it into the actual env & secret namespaceos.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__))12 unmodified lines131415161718192012 unmodified linesst.error("❌ FRED API not available. Please configure your FRED_API_KEY.")st.stop()# 3. Propagate it into the actual env namespace onlyos.environ["FRED_API_KEY"] = fred_key# 4. Now hook up your frontend codeHERE = os.path.dirname(os.path.abspath(__file__))
streamlit_app.py+1-2