Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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(
|