Spaces:
Runtime error
Runtime error
Update app.py
Browse filesChanging Pipeline
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from diffusers import
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import imageio
|
@@ -6,7 +6,7 @@ from PIL import Image
|
|
6 |
import torch
|
7 |
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
-
pipe =
|
10 |
pipe.to(device)
|
11 |
|
12 |
def resize(height,img):
|
|
|
1 |
+
from diffusers import StableDiffusionInpaintPipeline
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import imageio
|
|
|
6 |
import torch
|
7 |
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
+
pipe = StableDiffusionInpaintPipeline.from_pretrained("stabilityai/stable-diffusion-2-inpainting")
|
10 |
pipe.to(device)
|
11 |
|
12 |
def resize(height,img):
|