Diffusers How to use Purz/candy with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("Purz/candy")
prompt = "c4ndy, a close up of a basket filled with colorful gummy bears on a pink surface. the basket is made up of different colored candies"
image = pipe(prompt).images[0]