Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,8 +13,7 @@ adapter_id = "latent-consistency/lcm-lora-sdv1-5"
|
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
pipe = AutoPipelineForImage2Image.from_pretrained("Lykon/dreamshaper-8", torch_dtype=torch.float16) if torch.cuda.is_available() else AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo")
|
15 |
pipe = pipe.to(device)
|
16 |
-
|
17 |
-
pipe.fuse_lora()
|
18 |
def resize(value,img):
|
19 |
img = Image.open(img)
|
20 |
img = img.resize((value,value))
|
|
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
pipe = AutoPipelineForImage2Image.from_pretrained("Lykon/dreamshaper-8", torch_dtype=torch.float16) if torch.cuda.is_available() else AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo")
|
15 |
pipe = pipe.to(device)
|
16 |
+
|
|
|
17 |
def resize(value,img):
|
18 |
img = Image.open(img)
|
19 |
img = img.resize((value,value))
|