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

How do i set up the api key? #17

Closed
scaruslooner opened this issue May 19, 2024 · 2 comments
Closed

How do i set up the api key? #17

scaruslooner opened this issue May 19, 2024 · 2 comments

Comments

@scaruslooner
Copy link

I got this error message while trying to run this command "streamlit run AutoGroq/main.py". How do I set up the api key?

No secrets files found. Valid paths for a secrets.toml file are: C:\Users\camer.streamlit\secrets.toml, C:\Users\camer\Documents\AutoGroq.streamlit\secrets.toml

FileNotFoundError: No secrets files found. Valid paths for a secrets.toml file are: C:\Users\camer.streamlit\secrets.toml, C:\Users\camer\Documents\AutoGroq.streamlit\secrets.toml
Traceback:
File "C:\Users\camer\Documents\AutoGroq\autogroq_venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "C:\Users\camer\Documents\AutoGroq\AutoGroq\main.py", line 82, in
main()
File "C:\Users\camer\Documents\AutoGroq\AutoGroq\main.py", line 23, in main
api_key = get_api_key()
^^^^^^^^^^^^^
File "C:\Users\camer\Documents\AutoGroq\AutoGroq\auth_utils.py", line 24, in get_api_key
api_key = st.secrets.get(api_key_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 774, in get
File "C:\Users\camer\Documents\AutoGroq\autogroq_venv\Lib\site-packages\streamlit\runtime\secrets.py", line 305, in getitem
value = self._parse(True)[key]
^^^^^^^^^^^^^^^^^
File "C:\Users\camer\Documents\AutoGroq\autogroq_venv\Lib\site-packages\streamlit\runtime\secrets.py", line 214, in _parse
raise FileNotFoundError(err_msg)

@steven-yan
Copy link

same issue, how to solve please

@jgravelle
Copy link
Owner

Locally, make environment variables... https://www.youtube.com/watch?v=VKvoNLsSKj0&t=410s

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

3 participants