Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ import random
|
|
| 8 |
from PIL import Image
|
| 9 |
from typing import Iterable
|
| 10 |
|
|
|
|
| 11 |
from diffusers import Flux2KleinPipeline
|
| 12 |
from diffusers.utils import load_image
|
| 13 |
from huggingface_hub import hf_hub_download
|
|
@@ -107,12 +108,21 @@ LORA_STYLES = [
|
|
| 107 |
"weights": "3D-GhosMannequinRank-256_000005000.safetensors",
|
| 108 |
"default_prompt": None
|
| 109 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
]
|
| 111 |
|
| 112 |
LOADED_ADAPTERS = set()
|
| 113 |
|
| 114 |
print("Loading FLUX.2 Klein 9B model base...")
|
| 115 |
-
pipe =
|
| 116 |
"black-forest-labs/FLUX.2-klein-9B",
|
| 117 |
torch_dtype=torch.bfloat16,
|
| 118 |
).to(device)
|
|
|
|
| 8 |
from PIL import Image
|
| 9 |
from typing import Iterable
|
| 10 |
|
| 11 |
+
from diffusers import DiffusionPipeline
|
| 12 |
from diffusers import Flux2KleinPipeline
|
| 13 |
from diffusers.utils import load_image
|
| 14 |
from huggingface_hub import hf_hub_download
|
|
|
|
| 108 |
"weights": "3D-GhosMannequinRank-256_000005000.safetensors",
|
| 109 |
"default_prompt": None
|
| 110 |
},
|
| 111 |
+
|
| 112 |
+
{
|
| 113 |
+
"image": "https://huggingface.co/spaces/prithivMLmods/FLUX.2-Klein-LoRA-Studio/resolve/main/examples/mc.png",
|
| 114 |
+
"title": "Object-Remover",
|
| 115 |
+
"adapter_name": "object-remover",
|
| 116 |
+
"repo": "prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox",
|
| 117 |
+
"weights": "FLUX.2-Klein-Object-Remover-Bbox-5000.safetensors",
|
| 118 |
+
"default_prompt": None
|
| 119 |
+
},
|
| 120 |
]
|
| 121 |
|
| 122 |
LOADED_ADAPTERS = set()
|
| 123 |
|
| 124 |
print("Loading FLUX.2 Klein 9B model base...")
|
| 125 |
+
pipe = DiffusionPipeline.from_pretrained(
|
| 126 |
"black-forest-labs/FLUX.2-klein-9B",
|
| 127 |
torch_dtype=torch.bfloat16,
|
| 128 |
).to(device)
|