Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from diffusers import DiffusionPipeline, StableDiffusionLatentUpscalePipeline
|
|
7 |
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
pipe = DiffusionPipeline.from_pretrained("prompthero/openjourney-v4", safety_checker=None)
|
10 |
-
upscaler = StableDiffusionLatentUpscalePipeline.from_pretrained("stabilityai/sd-x2-latent-upscaler",
|
11 |
upscaler = upscaler.to(device)
|
12 |
pipe = pipe.to(device)
|
13 |
|
|
|
7 |
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
pipe = DiffusionPipeline.from_pretrained("prompthero/openjourney-v4", safety_checker=None)
|
10 |
+
upscaler = StableDiffusionLatentUpscalePipeline.from_pretrained("stabilityai/sd-x2-latent-upscaler", safety_checker=None)
|
11 |
upscaler = upscaler.to(device)
|
12 |
pipe = pipe.to(device)
|
13 |
|