multimodalart HF staff commited on
Commit
9e720d9
1 Parent(s): 185f2d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ import torch
11
  from torch import autocast
12
  import cv2
13
  from matplotlib import pyplot as plt
14
- from diffusers import StableDiffusionInpaintPipeline
15
  from torchvision import transforms
16
  from clipseg.models.clipseg import CLIPDensePredT
17
 
@@ -22,7 +22,7 @@ def download_image(url):
22
  return PIL.Image.open(BytesIO(response.content)).convert("RGB")
23
 
24
  device = "cuda" if torch.cuda.is_available() else "cpu"
25
- pipe = StableDiffusionInpaintingPipeline.from_pretrained(
26
  "runwayml/stable-diffusion-inpainting",
27
  revision="fp16",
28
  torch_dtype=torch.float16,
 
11
  from torch import autocast
12
  import cv2
13
  from matplotlib import pyplot as plt
14
+ from diffusers import DiffusionPipeline
15
  from torchvision import transforms
16
  from clipseg.models.clipseg import CLIPDensePredT
17
 
 
22
  return PIL.Image.open(BytesIO(response.content)).convert("RGB")
23
 
24
  device = "cuda" if torch.cuda.is_available() else "cpu"
25
+ pipe = DiffusionPipeline.from_pretrained(
26
  "runwayml/stable-diffusion-inpainting",
27
  revision="fp16",
28
  torch_dtype=torch.float16,