linoyts HF Staff commited on
Commit
9e22d6e
·
verified ·
1 Parent(s): 8655f65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="kontext.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")
 
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")