alexander-potemkin commited on
Commit
03db192
·
verified ·
1 Parent(s): a98692c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def generate(prompt, negative_prompt, model=image_model):
22
  pipe = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, token=hf_token).to('cuda')
23
 
24
  # Load the uncensored LoRA weights
25
- pipe.load_lora_weights('enhanceaiteam/Flux-uncensored', weight_name='lora.safetensors')
26
 
27
  else:
28
  pipe = DiffusionPipeline.from_pretrained(
 
22
  pipe = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, token=hf_token).to('cuda')
23
 
24
  # Load the uncensored LoRA weights
25
+ pipe.load_lora_weights('enhanceaiteam/Flux-uncensored-v2', weight_name='lora.safetensors')
26
 
27
  else:
28
  pipe = DiffusionPipeline.from_pretrained(