Spaces:
Running
Running
ciover2024
commited on
Commit
•
dd3f9d3
1
Parent(s):
d335e56
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,16 @@ import torch
|
|
7 |
from diffusers import FluxControlNetPipeline
|
8 |
from diffusers import FluxControlNetModel #, FluxMultiControlNetModel
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
#import torch.nn.functional as F
|
11 |
#import torchvision
|
12 |
#import torchvision.transforms as T
|
|
|
7 |
from diffusers import FluxControlNetPipeline
|
8 |
from diffusers import FluxControlNetModel #, FluxMultiControlNetModel
|
9 |
|
10 |
+
"""
|
11 |
+
from diffusers import DiffusionPipeline
|
12 |
+
|
13 |
+
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev")
|
14 |
+
pipe.load_lora_weights("enhanceaiteam/Flux-Uncensored-V2")
|
15 |
+
|
16 |
+
prompt = "nsfw nude woman on beach, sunset, long flowing hair, sensual pose"
|
17 |
+
image = pipe(prompt).images[0]
|
18 |
+
"""
|
19 |
+
|
20 |
#import torch.nn.functional as F
|
21 |
#import torchvision
|
22 |
#import torchvision.transforms as T
|