Комментарии:
Very useful for my hackathon
Ответитьthanks for such clear instructions
ОтветитьHelpful but what if I have to commit a bunch of variables like keys that you get from Google Cloud in the form of a JSON?
ОтветитьVery helpful! Thanks very much.
Ответитьyou used auth_key and not auth_token. How comes?
ОтветитьI still get this problem:
Did not find openai_api_key, please add an environment variable `OPENAI_API_KEY` which contains it, or pass `openai_api_key` as a named parameter. (type=value_error)
My code:
# Get API key
OPENAI_API_KEY = st.secrets['API']
# Set OpenAI API key
openai.api_key = OPENAI_API_KEY
Streamlit secrets option:
API = "mykeyhere"
This is what I was looking for, thanks! Just one question, it says to use TOML format. So if for example I have many config elements that I got from Firebase Realtime Database to connect, can I just put them in JSON dictionary form?
Like config = {'APIkey': 'blablabal', 'projectid': 'blablabal', 'authdomain': 'blablabal', etc}
Or do I have to change it?
Thanks Misra, I think you meant to call the secret "auth_token" instead of "auth_key".
Ответитьhow to when using local environment?
ОтветитьThanks you..
ОтветитьThanks 🙏 Mam.
Ответить