Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run the app because secret file not found #1

Open
Georgebobby opened this issue Oct 3, 2023 · 1 comment
Open

Can't run the app because secret file not found #1

Georgebobby opened this issue Oct 3, 2023 · 1 comment

Comments

@Georgebobby
Copy link

Hello~ thank you for the wonderful project. In your demo, there should be an entry for one to enter the openai key... However, it seems that it should be provided somewhere inside the code???
When I run the app according to the doc, the following error occurs. Any help would be appreciated...

No secrets files found. Valid paths for a secrets.toml file are: /home/will/.streamlit/secrets.toml, /home/will/Python_Projects/GPTube/streamlit/.streamlit/secrets.toml

FileNotFoundError: No secrets files found. Valid paths for a secrets.toml file are: /home/will/.streamlit/secrets.toml, /home/will/Python_Projects/GPTube/streamlit/.streamlit/secrets.toml
Traceback:
File "/home/will/miniconda3/envs/GPTube/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
exec(code, module.dict)
File "/home/will/Python_Projects/GPTube/streamlit/01_🎬_YouTube.py", line 11, in
set_api_key(st.secrets["ELEVENLABS_API_KEY"])
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/home/will/miniconda3/envs/GPTube/lib/python3.11/site-packages/streamlit/runtime/secrets.py", line 305, in getitem
value = self._parse(True)[key]
^^^^^^^^^^^^^^^^^
File "/home/will/miniconda3/envs/GPTube/lib/python3.11/site-packages/streamlit/runtime/secrets.py", line 214, in _parse
raise FileNotFoundError(err_msg)

@Hamagistral
Copy link
Owner

Hamagistral commented Oct 3, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants