Arafath10 commited on
Commit
96588bb
1 Parent(s): 80a9e93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from diffusers import StableDiffusionInstructPix2PixPipeline, EulerAncestralDisc
8
 
9
  model_id = "timbrooks/instruct-pix2pix"
10
  pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None)
11
- pipe.to("cuda")
12
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
13
 
14
 
 
8
 
9
  model_id = "timbrooks/instruct-pix2pix"
10
  pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None)
11
+ pipe.to("cpu")
12
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
13
 
14