Spaces:
Running
Running
Update app.py
Browse files
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("
|
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)
|