ZenAI is your digital image generator AI assistant, JavaScript ChatGPT AI app using OpenAI DALL-E ML models.
ZenAI is a VanillaJS ChatGPT AI app that resembles the DALL-E app with the ability to ask the AI for generate digital images from natural language descriptions.
The folder structure of ZenAI is separated into server-side and client-side.
ZenAI-GPT-Dall-E/
|- client/
|-- assets/
|-- public/
|-- index.html
|-- package.json
|-- script.js
|-- style.css
|- server/
|-- package.json
|-- server.js
|-- .env
Now, lets dive into the server and client folders.
index.html
- style.css
- script.js
Responsive layouts with CSS and elegant UI (User Interface) that resembles the DALL-E app & communication with advanced GPT-3 model API using DALL-E
server.js
- .env
Node.js used for the server-side, VanillaJS code using OpenAI DALL-E models, handle events with JS.
In order to use ZenAI you have to create your OpenAI api key here, to run this web app, you will need to add the following environment variable to your .env file
OPENAI_API_KEY
Download or clone this repo by using the link below:
https://github.com/ladunjexa/ZenAI-GPT-Dall-E
LunaAI using NPM (Node Package Manager), therefore, make sure that Node.js is installed by execute the following command in console:
node -v
Go to client & server folders and execute the following command in console to get the required dependencies:
npm install
Within the server-side folder create a file named .env
and add the following environment variable:
OPENAI_API_KEY=<YOUR_API_KEY>
Go to server folder and execute the following command in console to get the required dependencies:
npm run server
Go to client folder and execute the following command in console to get the required dependencies:
npm run dev
Contributions are always welcome!
See contributing.md
for ways to get started.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- 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
Distributed under the MIT License. See LICENSE.txt for more information.
Liron Abutbul - @lironabutbul6 - @ladunjexa
Project Link: https://github.com/ladunjexa/ZenAI-GPT-Dall-E
This section used to mention useful resources and libraries that used in ZenAI ChatGPT DALL-E
- OpenAI API
- Google Fonts
- #JSMastery