JSON Prompting has emerged as one of the best ways to prompt an image generation model in a structured format. While JSON Prompting has its benefits, it also has a couple of drawbacks. One of the most well-known is how stressful it can be to work with JSON. To fix this, we need a better interface to work with it, and that interface is a basic HTML form.
This repo is the accompanying repository for the article: Form Your Images With JSON Prompting. In this repo, you will find the full code for the application.
git clone https://github.com/Neurl-LLC/FORM
cd FORMInstall the required Python dependencies:
pip install -r requirements.txtCreate a .env file in the root of the project and add your OpenAI API key:
OPENAI_API_KEY=sk-...Note: Your OpenAI account must be verified to use the image generation model.
Once the environment is set up, you can launch the application:
python app.pyWatch a video demo here: https://youtu.be/yTZ1jjJjUZU
