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

FileNotFoundError: No secrets files found. Valid paths for a secrets.toml file are: /root/.streamlit/secrets.toml, /app/.streamlit/secrets.toml #4

Open
71walceli opened this issue Mar 6, 2024 · 4 comments

Comments

@71walceli
Copy link

Hi! I just wanted to test it out, and I got this error:

Screenshot_20240305_194610

This is run locally, right? Or do I require some sort of key?

@jurajdanis
Copy link

Same issue here. The error apparently blocks all the functionality.

@71walceli
Copy link
Author

Is it possible and feasible to run this locally? Or this only works with the OpenAI LLM?

@71walceli
Copy link
Author

Anyways, I would like to know the correct way to set up a key, I'll help write the instructions for this, though I haven't been able to figure out how...

@ricardobalk
Copy link
Contributor

ricardobalk commented Apr 24, 2024

1) Secrets file

An example of the secrets file can be found at ./app/.streamlit/secrets.toml.example:

OPENAI_API_KEY = "<YOUR API KEY HERE>"

This file should be copied or renamed to secrets.toml and contain your own OpenAI API key.

Keep in mind that even though it looks like it's running locally, you're still using OpenAI's API, so requests are sent over the internet and there's actually no LLM running locally.

2) Running an LLM locally

If you want to run an LLM locally, check out this repo I created just a few days ago: https://github.com/ricardobalk/streamlit-ollama - not as fancy as this Streamlit app, but it provides a basic setup allowing to run llama2/llama3 locally.

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

No branches or pull requests

3 participants