rahul-s-007 / code-pro Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Refer to https://www.youtube.com/watch?v=I4T--ycOpi0 and reform the prompts in the new method
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 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.