CoolFace
Apppublic

vaibhavpandeyvpz/flux.2-text-to-image

sourceHugging Faceapache-2.0updated 10mo agoView on Hugging Face
2likes
App README

FLUX.2 [dev] Text-to-Image

Generate high-quality images using FLUX.2 [dev], a 32B parameter rectified flow model by Black Forest Labs.

Features

  • —Text-to-Image Generation: Create images from text prompts
  • —Image Editing: Upload images for editing and manipulation
  • —Image Combining: Combine multiple images based on text instructions
  • —Prompt Upsampling: Automatically enhance prompts using a VLM (optional)
  • —ZeroGPU Support: Optimized for ZeroGPU inference
  • —Advanced Controls: Fine-tune generation with seed, guidance scale, inference steps, and dimensions

Setup

This Space requires:

  • —ZeroGPU: Enable ZeroGPU in your Space settings
  • —HF_TOKEN: Set your Hugging Face token as a Space secret for gated model access
  • —Go to Settings → Secrets → Add HF_TOKEN with your Hugging Face token

Model

Usage

  1. 1.Enter a text prompt describing the image you want to generate
  2. 2.(Optional) Upload one or more images for editing/combining
  3. 3.Adjust advanced settings as needed:
  4. 4.Prompt Upsampling: Enable to automatically enhance your prompt
  5. 5.Seed: Control randomness (use randomize for variety)
  6. 6.Dimensions: Width and height (must be multiples of 8)
  7. 7.Inference Steps: More steps = higher quality but slower (default: 30)
  8. 8.Guidance Scale: How closely to follow the prompt (default: 4.0)
  9. 9.Click "Run" to generate your image

Notes

  • —The model uses pre-compiled blocks for ZeroGPU optimization
  • —Prompt upsampling requires a valid HF_TOKEN secret
  • —Image dimensions are automatically adjusted when uploading images
  • —Supports image editing and combining multiple images

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference