Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from PIL import Image
|
|
6 |
from diffusers import DiffusionPipeline
|
7 |
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
-
pipe = DiffusionPipeline.from_pretrained("prompthero/openjourney-v2", safety_checker=None)
|
10 |
pipe = pipe.to(device)
|
11 |
|
12 |
def genie (prompt, scale, steps, seed):
|
|
|
6 |
from diffusers import DiffusionPipeline
|
7 |
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
+
pipe = DiffusionPipeline.from_pretrained("prompthero/openjourney-v2", torch_dtype=torch.float16, revision="fp16", safety_checker=None)
|
10 |
pipe = pipe.to(device)
|
11 |
|
12 |
def genie (prompt, scale, steps, seed):
|