Our first aI pOwErEd app, helping noob programmers like us.
Report Bug
·
Request Feature
Table of Contents
Our first local application, asking OpenAI-API to write code for us. The NLT should provide code corresponding to your prompt, allowing you to save it and edit it. If you ask for python code, you may be able to run it!
We made this for school as a way to hone our wobbly skills, and it shows.
To get a local copy up and running follow these steps. You'll need python and docker to run this properly.
You should possess an OpenAI API key, and have it in your environnement variable under 'OPENAI_API_KEY'.
-
For Windows, inside a command prompt :
setx OPENAI_API_KEY "your-api-key-here"
-
Others :
export OPENAI_API_KEY='your-api-key-here'
In case we were dumb enough to miss a step, please refer to OpenAI API documentation.
- Clone the repo
git clone https://github.com/Insiares/Projet-NLT.git
- Install required packages
pip install -r requirements.txt
- Get the docker running
cd ./Prototype_NLT/ docker context create compose docker-compose -f docker-compose.yml up -d
- CD into your /Prototype_NLT/ directory, and run the app inside your browser
streamlit run app.py
Enter your demand in the first text area, if you modify it and want to ask again, don't forget to validate by hitting CTRL+Enter.
The outputed code is displayed below in an editor. You can play with the code, and even run it (If giant pasta god's willing). If you want to keep your code for further use, hit run at least once to save it inside the database.
You can then load previous session in the left sidebar. Choose your prompt and load it.
Might still be buggy, you can open an issue.
- Prototype
- Session Recording
- Save-enabled editable code block.
- Execute outputed code.
- [~] Prompt Engineering
- [~] More Langages
- Different assistant personality
See the open issues for a full list of proposed features (and known issues).
You shall not feel the need to.
Should the extrem necessity emerges, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- Leave Star on your way out !
Distributed under the MIT License. See LICENSE.txt
for more information.
Please don't.