I can’t for the life of me figure out secrets. I am installing the new llama2 chatbot but it can’t get my secrets! How do I link them? I put my REPLICATE_API_KEY = “key” but it’s still not linking or picking it up! Anyone can help with this element?
You can refer to Section 4 in the following blog which shows a step-by-step on how to do this:
In essence, you’ll set the API token in the Secrets management of Streamlit Community Cloud and then call it in your app Python code (in your GitHub repo) via
st.secrets['REPLICATE_API_TOKEN'] (see the code for context here https://github.com/dataprofessor/llama2/blob/master/streamlit_app.py)
Hope this helps!
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.