Dipti Tanwani • almost 2 years ago
Replicate token in public app
Hello,
Our app uses a replicate token. While deploying the same to repository, we are getting follwoing error :
File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.__dict__)
File "/mount/src/genai_sf_arctic/GenAi_DB-Bot.py", line 3, in
import meeting
File "/mount/src/genai_sf_arctic/meeting.py", line 6, in
replicate_api = st.secrets['REPLICATE_API_TOKEN']
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/secrets.py", line 311, in __getitem__
raise KeyError(_missing_key_error_message(key))
Also, recieved a mail stating replicate token cannot be provided in a public app.
Could you please suggest on how can i proceed on this?
Thanks in advance.
Regards,
Dipti Tanwani.
Comments are closed.

1 comment
Anna Filippova Manager • almost 2 years ago
Hey there Dipti! Make sure you aren't including the secrets file in your git repository and that your secrets file is listed in your .gitignore.