Code Monkey home page Code Monkey logo

code-pro's People

Contributors

rahul-s-007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

code-pro's Issues

FileNotFoundError: [Errno 2] No such file or directory: Code-Pro/.streamlit/secrets.toml'

Hi,

When installing Code-Pro locally with an .env file containing OPENAI_API_KEY= in the root of the project folder,
I get following error :

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
  File "/mnt/moredata/home/hdp/projects-crypto/selfGrid4/Code-Pro/main.py", line 17, in <module>
    openai.api_key = st.secrets["OPENAI_API_KEY"]
  File "/usr/local/lib/python3.8/dist-packages/streamlit/runtime/secrets.py", line 267, in __getitem__
    value = self._parse(True)[key]
  File "/usr/local/lib/python3.8/dist-packages/streamlit/runtime/secrets.py", line 174, in _parse
    with open(self._file_path, encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/moredata/home/<fullpath>/Code-Pro/.streamlit/secrets.toml'

It seems like there is no directory .streamlit in the project folder, do I have to make that dir myself and populate it with what ?
I have little experience with streamlit, how can this error be solved ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.