amazonaws-sp commited on
Commit
9fdb4fb
1 Parent(s): 83d6fc0

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 = AutoPipelineForImage2Image.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 = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
65
 
66
  response = requests.get(url)
67
  init_image = Image.open(BytesIO(response.content)).convert("RGB")