fahad11182 commited on
Commit
a03bee1
·
verified ·
1 Parent(s): 4f8b2be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ import random
7
  # Load the InstructPix2Pix model
8
  model_id = "timbrooks/instruct-pix2pix"
9
  pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
10
- pipe = pipe.to("cuda")
11
 
12
  # Initialize a random seed
13
  seed = random.randint(0, 10000)
 
7
  # Load the InstructPix2Pix model
8
  model_id = "timbrooks/instruct-pix2pix"
9
  pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
10
+ pipe = pipe.to("cpu")
11
 
12
  # Initialize a random seed
13
  seed = random.randint(0, 10000)