Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import random
|
|
6 |
from diffusers import DiffusionPipeline
|
7 |
import torch
|
8 |
import os
|
9 |
-
a=os.getenv('
|
10 |
login(token=a )
|
11 |
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
@@ -18,6 +18,8 @@ else:
|
|
18 |
torch_dtype = torch.float32
|
19 |
|
20 |
pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
|
|
|
|
|
21 |
pipe = pipe.to(device)
|
22 |
|
23 |
MAX_SEED = np.iinfo(np.int32).max
|
|
|
6 |
from diffusers import DiffusionPipeline
|
7 |
import torch
|
8 |
import os
|
9 |
+
a=os.getenv('key_for_man_asshole')
|
10 |
login(token=a )
|
11 |
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
18 |
torch_dtype = torch.float32
|
19 |
|
20 |
pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
|
21 |
+
pipe.load_lora_weights("alexeyGod/jjjjjiuiui")
|
22 |
+
pipe.fuse_lora()
|
23 |
pipe = pipe.to(device)
|
24 |
|
25 |
MAX_SEED = np.iinfo(np.int32).max
|