Spaces:
Runtime error
Runtime error
Commit
·
30c98b1
1
Parent(s):
1259c40
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ processor = CLIPSegProcessor.from_pretrained("CIDAS/clipseg-rd64-refined")
|
|
33 |
model = CLIPSegForImageSegmentation.from_pretrained("CIDAS/clipseg-rd64-refined")
|
34 |
|
35 |
|
36 |
-
device =
|
37 |
IPmodel_path = "runwayml/stable-diffusion-inpainting"
|
38 |
|
39 |
IPpipe = StableDiffusionInpaintPipeline.from_pretrained(
|
|
|
33 |
model = CLIPSegForImageSegmentation.from_pretrained("CIDAS/clipseg-rd64-refined")
|
34 |
|
35 |
|
36 |
+
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
37 |
IPmodel_path = "runwayml/stable-diffusion-inpainting"
|
38 |
|
39 |
IPpipe = StableDiffusionInpaintPipeline.from_pretrained(
|