F L U X Prompt Generator
AitrepreneurIntroduction
The FLUX Prompt Generator is a project by Aitrepreneur hosted on Hugging Face's platform, designed to facilitate prompt generation. It is licensed under Apache 2.0 and utilizes the Gradio SDK for its interface.
Architecture
The application employs the gradio
SDK, version 4.40.0, for creating interactive user interfaces. It is pinned to use specific color themes from blue to gray. The main application logic resides in app.py
.
Training
The FLUX Prompt Generator leverages models available on Ollama, such as the Llama 3 8B model, for text generation. Users have the option to use cloud-based services like Groq for enhanced capabilities by providing an API key.
Guide: Running Locally
To run the FLUX Prompt Generator locally:
-
Install Git LFS and Clone Repository
git lfs install git clone https://huggingface.co/Aitrepreneur/FLUX-Prompt-Generator
-
Set Up Virtual Environment
Inside the cloned directory:python -m venv env env\Scripts\activate # For Windows
-
Install Dependencies
pip install -r requirements.txt
-
Run the Application
python app.py
-
Configure API Key (Optional)
Inapp.py
, on line 337, replaceYOUR-GROQ-API-KEY
with your actual Groq API key for using Groq services. -
Use Locally with Ollama
- Download and install Ollama from ollama.com.
- Start Ollama in the background and download the Llama 3 8B model:
ollama run llama3
- In the FLUX prompter WebUI, check "Use Ollama (local)" to operate locally.
Suggested Cloud GPUs
For enhanced performance, consider using cloud GPU providers like AWS, Google Cloud, or Azure to run intensive computations.
License
The FLUX Prompt Generator is licensed under the Apache License 2.0, allowing users freedom to use, modify, and distribute the software as per the terms of the license.