pervrosen / perfect-prompt

An approach to creating the perfect prompt for any image generation task.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🎨 Perfect Prompt

An approach to creating the perfect prompt for any image generation task. Type in a prompt, and Perfect Prompt will match it to one of six art styles (cyberpunk, steampunk, water colors, cottagecore, landscapes, and architecture) and provide generated variations of your prompt along these lines, in under a minute!

Want to try it for yourself? Follow the instructions below or click here for the deployed version!

demo gif

Requirements

  • cohere
  • streamlit
  • replicate (for image generation)
  • pandas

Installation

First, secure API keys for both Replicate and Cohere, and save them to Streamlit secrets management.

Clone this repo, and run the following command:

streamlit run app.py

Author

This app was made by Arjun Patel, a data scientist with experience applying deep learning to audio and text data. Connect with me on Linkedin!

Acknowledgements

This app was made during the Cohere AI Hackathon, in which Cohere and Lablab.ai offered access to Cohere Classify and Generate APIs for novel uses. Thank you to both groups for their assistance and mentorship.

This app makes use of the Lexica API, which is generously made freely accessible by the folks over at Lexica.art. Finally, thanks to Replicate for an easy to use api for Stable Diffusion access.

About

An approach to creating the perfect prompt for any image generation task.

License:MIT License


Languages

Language:Jupyter Notebook 70.6%Language:Python 29.4%