Krea-2-Realism-LoRA / README.md
ajsbsd's picture
Create README.md
d599832 verified
|
Raw History Blame Contribute Delete
1.71 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
title: Krea 2 Turbo Realism
emoji: 📚
colorFrom: yellow
colorTo: pink
sdk: gradio
sdk_version: 5.34.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: Krea 2 Turbo + Realism LoRA, running on ZeroGPU

Krea 2 Turbo + Realism LoRA

Gradio demo for krea/Krea-2-Turbo with the gokaygokay/Krea-2-Realism-LoRA adapter, deployed to run on Hugging Face's free ZeroGPU hardware.

Files

  • app.py — Gradio UI + inference function decorated with @spaces.GPU
  • requirements.txt — dependencies (installs diffusers from main since Krea2Pipeline is new)

Deploying

  1. Create a new Space at huggingface.co/new-space
  2. SDK: Gradio, Hardware: any (ZeroGPU is granted automatically via the spaces import + decorator, no need to select a paid GPU tier)
  3. Under Space settings, enable ZeroGPU if prompted (it's the default free tier for Gradio Spaces using the spaces package)
  4. Upload app.py, requirements.txt, and this README.md
  5. The Space will build and serve automatically

Notes

  • Model loading (from_pretrained, load_lora_weights) happens at module import time, on CPU. The .to("cuda") call and every actual inference call happen inside the @spaces.GPU-decorated infer() function — this is required for ZeroGPU, which only attaches a GPU for the duration of that call.
  • duration=60 in @spaces.GPU(duration=60) caps each generation at 60 GPU-seconds; raise it if you increase steps/resolution.
  • Default settings mirror the reference script: num_inference_steps=8, guidance_scale=0.0 (Turbo model, so no CFG needed).