Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import modin.pandas as pd
|
|
8 |
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
pipe = StableDiffusionInpaintPipeline.from_pretrained("stabilityai/stable-diffusion-2-inpainting", safety_checker=None)
|
11 |
-
pipe.to(device)
|
12 |
|
13 |
def resize(height,img):
|
14 |
baseheight = height
|
|
|
8 |
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
pipe = StableDiffusionInpaintPipeline.from_pretrained("stabilityai/stable-diffusion-2-inpainting", safety_checker=None)
|
11 |
+
pipe = pipe.to(device)
|
12 |
|
13 |
def resize(height,img):
|
14 |
baseheight = height
|