Spaces:
Paused
Paused
|
Download README.md from ajsbsd/Krea-2-Realism-LoRA: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/spaces/ajsbsd/Krea-2-Realism-LoRA/resolve/main/README.md
- Command line
-
hf download hf://spaces/ajsbsd/Krea-2-Realism-LoRA/README.md
-
curl -L -o README.md https://huggingface.co/spaces/ajsbsd/Krea-2-Realism-LoRA/resolve/main/README.md
1.71 kB
A newer version of the Gradio SDK is available: 6.32.0
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.GPUrequirements.txt— dependencies (installsdiffusersfrommainsince Krea2Pipeline is new)
Deploying
- Create a new Space at huggingface.co/new-space
- SDK: Gradio, Hardware: any (ZeroGPU is granted automatically via the
spacesimport + decorator, no need to select a paid GPU tier) - Under Space settings, enable ZeroGPU if prompted (it's the default free tier for Gradio Spaces using the
spacespackage) - Upload
app.py,requirements.txt, and thisREADME.md - 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-decoratedinfer()function — this is required for ZeroGPU, which only attaches a GPU for the duration of that call. duration=60in@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).