Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from diffusers import FluxTransformer2DModel
|
|
9 |
from diffusers.utils import load_image
|
10 |
from huggingface_hub import hf_hub_download
|
11 |
|
12 |
-
kontext_path = hf_hub_download(repo_id="diffusers/kontext", filename="
|
13 |
MAX_SEED = np.iinfo(np.int32).max
|
14 |
transformer = FluxTransformer2DModel.from_single_file(kontext_path, torch_dtype=torch.bfloat16)
|
15 |
pipe = FluxKontextPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", transformer=transformer, torch_dtype=torch.bfloat16).to("cuda")
|
|
|
9 |
from diffusers.utils import load_image
|
10 |
from huggingface_hub import hf_hub_download
|
11 |
|
12 |
+
kontext_path = hf_hub_download(repo_id="diffusers/kontext-v2", filename="dev-opt-2-a-3.safetensors")
|
13 |
MAX_SEED = np.iinfo(np.int32).max
|
14 |
transformer = FluxTransformer2DModel.from_single_file(kontext_path, torch_dtype=torch.bfloat16)
|
15 |
pipe = FluxKontextPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", transformer=transformer, torch_dtype=torch.bfloat16).to("cuda")
|