-
Notifications
You must be signed in to change notification settings - Fork 18
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
Comments
Hi,
Are you running the code locally or using the deployed version in streamlit
cloud? If you’re using it locally, then you’ll need to:
1. Make a .env file to store the api keys, you’ll need one ASSEMBLY AI key
and one ELEVEN LABS AI
Note: These api keys, are used in the PODCAST AND MEETING summarization,
and also for the text-to-speech for audio summary.
If you don’t want that just go in the code and remove those parts and run
the app to only use the openai api key.
…On Tue, 3 Oct 2023 at 09:14 George Bobby ***@***.***> wrote:
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)
—
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APXVQMJKLHTZ3YHYE5LTZ63X5PCNTAVCNFSM6AAAAAA5QSU5X2VHI2DSMVQWIX3LMV43ASLTON2WKOZRHEZDGNJXGAYTIOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)
The text was updated successfully, but these errors were encountered: