Merge branch 'main' of https://huggingface.co/spaces/runwayml/stable-diffusion-inpainting
Browse files
app.py
CHANGED
@@ -18,8 +18,7 @@ auth_token = os.environ.get("API_TOKEN") or True
|
|
18 |
|
19 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
20 |
|
21 |
-
pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-inpainting", dtype=torch.float16, revision="fp16", use_auth_token=auth_token)
|
22 |
-
pipe.to(device)
|
23 |
|
24 |
transform = transforms.Compose([
|
25 |
transforms.ToTensor(),
|
|
|
18 |
|
19 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
20 |
|
21 |
+
pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-inpainting", dtype=torch.float16, revision="fp16", use_auth_token=auth_token).to(device)
|
|
|
22 |
|
23 |
transform = transforms.Compose([
|
24 |
transforms.ToTensor(),
|