Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from diffusers.utils import load_image
|
|
8 |
import math
|
9 |
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
-
pipe = DiffusionPipeline.from_pretrained("radames/stable-diffusion-v1-5-img2img", torch_dtype=torch.float16) if torch.cuda.is_available() DiffusionPipeline.from_pretrained("radames/stable-diffusion-v1-5-img2img")
|
12 |
pipe = pipe.to(device)
|
13 |
|
14 |
def resize(value,img):
|
|
|
8 |
import math
|
9 |
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
+
pipe = DiffusionPipeline.from_pretrained("radames/stable-diffusion-v1-5-img2img", torch_dtype=torch.float16) if torch.cuda.is_available() else DiffusionPipeline.from_pretrained("radames/stable-diffusion-v1-5-img2img")
|
12 |
pipe = pipe.to(device)
|
13 |
|
14 |
def resize(value,img):
|