GPTube
GPTube copied to clipboard
Can't run the app because secret file not found
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
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:
- 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 <https://github.com/Hamagistral/GPTube/issues/1>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APXVQMJKLHTZ3YHYE5LTZ63X5PCNTAVCNFSM6AAAAAA5QSU5X2VHI2DSMVQWIX3LMV43ASLTON2WKOZRHEZDGNJXGAYTIOA> . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>