melih-unsal / demogpt Goto Github PK
View Code? Open in Web Editor NEWCreate 🦜️🔗 LangChain apps by just using prompts🌟 Star to support our work! | 只需使用句子即可创建 LangChain 应用程序。 给个star支持我们的工作吧!
Home Page: https://demogpt.io/
License: MIT License
Create 🦜️🔗 LangChain apps by just using prompts🌟 Star to support our work! | 只需使用句子即可创建 LangChain 应用程序。 给个star支持我们的工作吧!
Home Page: https://demogpt.io/
License: MIT License
Dear DemoGPT developer,
Greetings! I am Jimmy, a community developer and volunteer at InternLM. Your work has been immensely beneficial to me, and I believe it can be effectively utilized in InternLM as well. Welcome to add Discord https://discord.gg/gF9ezcmtM3 . I hope to get in touch with you.
Best regards,
Jimmy
Describe the bug
Running the App produces the error 'which python' returned non-zero exit status 1. Using windows 10, all dependencies are installed
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The app should generate a streamlit application as shown in the demo
Issue
Running the App produces the error 'which python' returned non-zero exit status 1.
Desktop (please complete the following information):
Additional context
Do I need to create a new environment, also please add other required packages in the requiremets.txt file
I've yet to experiment fully with DemoGPT, but I would love to see this tool integrated into LangFlow or Flowise one day. Would be great to see the visualization of the steps, complementing the code generated.
Describe the bug
Following a fresh installation in new virtual environment with Python 3.10.11, I'm getting ModuleNotFoundError for termcolor. After installing termcolor with pip, I then get ModuleNotFoundError for dotenv. Unfortunately, I've been unable to install dotenv with pip or with 'pip install dotenv' or 'pip install --use-pep517 dotenv'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Streamlit inititates successfully
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
When cloning and running streamlit run src/prompt_based/app.py
Streamlit complains about `ModuleNotFoundError: No module named 'altair.vegalite.v4'
To Reproduce
Steps to reproduce the behavior:
streamlit run src/prompt_based/app.py
Expected behavior
N/A
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Issue seems to be to add altair>=4.0
https://discuss.streamlit.io/t/modulenotfounderror-no-module-named-altair-vegalite-v4/42921/2
Is your feature request related to a problem? Please describe.
Using local LLMs instead than OpenAI API as backend
Describe the solution you'd like
Create a DemoGPT agent from a locally available model (ideally, a quantized Llama2 model via llama-cpp-python
Describe alternatives you've considered
If that' s already possible, a guide or some instruction about how to do it would be greatly appreciated!
Additional context
NA
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Run the streamlit app with an idea submitted.
Expected behavior
A demo app is produced
Desktop (please complete the following information):
Additional context
It appears there are some hardcoded paths unique to the original development environment. For example:
FileNotFoundError: [Errno 2] No such file or directory: '/home/melih/anaconda3/envs/synthdata/bin/streamlit'
Describe the bug
To Reproduce
Steps to reproduce the behavior:
.env
file into the current folderdemogpt
Expected behavior
in the .env file I changed the "OPENAI_API_BASE" and specified the 'OPENAI_API_KEY', so when clicked on submit, it should directly call the llm
Describe the bug
I am using DemoGPT on MAC, and ran into TypeError once I submitted.
To Reproduce
Steps to reproduce the behavior:
streamlit run app.py
Error Message
Language Translator 📝 2023-07-03 17:26:34.783 Uncaught app exception Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.__dict__) File "/Users/mchuang/Desktop/Testing tools/DemoGPT/src/prompt_based/app.py", line 67, in <module> for data in generate_response(demo_idea): File "/Users/mchuang/Desktop/Testing tools/DemoGPT/src/prompt_based/app.py", line 16, in generate_response for data in agent(txt,num_of_iterations): File "/Users/mchuang/Desktop/Testing tools/DemoGPT/src/prompt_based/model.py", line 69, in __call__ response, error = self.run_python(total_code) File "/Users/mchuang/Desktop/Testing tools/DemoGPT/src/prompt_based/model.py", line 35, in run_python process = subprocess.Popen([python_path,tmp.name], env=environmental_variables,stdout=PIPE, stderr=PIPE) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 966, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1717, in _execute_child and os.path.dirname(executable) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/posixpath.py", line 152, in dirname p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType
Desktop (please complete the following information):
Hi,
I keep getting this error message: Invalid OpenAI API Key, even after i've created a brand new key,
when I try to get it to run locally, or in the browser (chrome, edge), using windows 10, python 3.12.
do I need a Plus or Enterprise account with OPENAI to get this to work?
Thanks,
the home page is reading model list from hardcoded list ,maybe add a configurable way for user to suit for the newest model
Describe the bug
When running DemoGPT on a Windows machine with a Python version 3.11, a UnicodeEncodeError is thrown. The error occurs when the application attempts to write to a temporary file using the tmp.write(code) function in run_code and run_python methods. The problem seems to stem from the code containing Unicode characters which are not supported by the default encoding of the temporary file.
To Reproduce
Steps to reproduce the behavior:
Install Python 3.10 or 3.11 (tried with both) on a Windows 10 machine.
Clone the DemoGPT repository.
Create a virtual environment and install the required libraries as indicated in the project README.
Execute the DemoGPT application with streamlit run src/prompt_based/app.py.
See error.
Expected behavior
The DemoGPT application should be able to handle Unicode characters in the code without throwing a UnicodeEncodeError.
Screenshots
The trace appeared on the app after failing, but could not make it appear again.
The title says it all...
Good formatted code base also makes contribution easier and helps keeping consistence.
Is your feature request related to a problem? Please describe.
Whenever, I would like to use a custom openAI base url such as Azure openAI or my openAI proxy, there is no option for that. DemoGPT should be able to support custom base url for openAI
Describe the solution you'd like
Similar to the openai API key, there should be an option to provide the open AI base url.
Describe the bug
There is a wechat QR code in the folder “docs/resources/”.
I added him on wechat. He's a developer of the project “MetaGPT”.
Whether forget to delete this file when copying the code from MetaGPT.
It is recommended to delete this file and note if the MetaGPT project is referenced
Amazing project and Idea!! would love to know how can I export the code
that was generated into an app, and continue developing it....
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.