amazonaws-sp commited on
Commit
71928b5
·
verified ·
1 Parent(s): 767576b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ def generate(
61
  if torch.cuda.is_available():
62
 
63
  if use_img2img:
64
- pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model, torch_dtype=torch.float16)
65
 
66
  response = requests.get(url)
67
  init_image = Image.open(BytesIO(response.content)).convert("RGB")
 
61
  if torch.cuda.is_available():
62
 
63
  if use_img2img:
64
+ pipe = AutoPipelineForImage2Image.from_pretrained(model, torch_dtype=torch.float16)
65
 
66
  response = requests.get(url)
67
  init_image = Image.open(BytesIO(response.content)).convert("RGB")