I’m following the instructions here to use secrets, but when I deploy my app I get the following error. Any idea what I could be doing wrong?
st.write("DB username:", st.secrets["db_username"])
TypeError: 'module' object is not subscriptable
I’m following the instructions here to use secrets, but when I deploy my app I get the following error. Any idea what I could be doing wrong?
st.write("DB username:", st.secrets["db_username"])
TypeError: 'module' object is not subscriptable
Hi @ndresh -
The first thing I would check is that you are using version 0.80 of Streamlit on your sharing app.
Best,
Randy
@randyzwitch thanks!
I actually deleted the app then created it again and set up the token this way.
It works now. 
Best,
Andres