Spaces:
Runtime error
Runtime error
justinpinkney
commited on
Commit
•
217632b
1
Parent(s):
741cfed
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
from PIL import Image
|
4 |
|
5 |
-
from
|
6 |
|
7 |
def main(
|
8 |
input_im,
|
@@ -57,9 +57,8 @@ More details on the method and training will come in a future blog post.
|
|
57 |
"""
|
58 |
|
59 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
60 |
-
pipe =
|
61 |
"lambdalabs/sd-image-variations-diffusers",
|
62 |
-
revision="273115e88df42350019ef4d628265b8c29ef4af5",
|
63 |
)
|
64 |
pipe = pipe.to(device)
|
65 |
|
|
|
2 |
import torch
|
3 |
from PIL import Image
|
4 |
|
5 |
+
from diffusers import StableDiffusionImageVariationPipeline
|
6 |
|
7 |
def main(
|
8 |
input_im,
|
|
|
57 |
"""
|
58 |
|
59 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
60 |
+
pipe = StableDiffusionImageVariationPipeline.from_pretrained(
|
61 |
"lambdalabs/sd-image-variations-diffusers",
|
|
|
62 |
)
|
63 |
pipe = pipe.to(device)
|
64 |
|