Skip to content

Neurl-LLC/FORM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Form Your Images With JSON Prompting

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.

FORM

Getting Started

Clone the Repository

git clone https://github.com/Neurl-LLC/FORM
cd FORM

Install Dependencies

Install the required Python dependencies:

pip install -r requirements.txt

Environment Setup

Create 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.

The Form App

Once the environment is set up, you can launch the application:

python app.py

Watch a video demo here: https://youtu.be/yTZ1jjJjUZU

About

Generate images using structured prompts with HTML forms as the interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors