kartik2627 commited on
Commit
d0a1850
Β·
verified Β·
1 Parent(s): d9bb4ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from datetime import datetime
6
  # Load the model
7
  model_id = "stabilityai/stable-diffusion-2"
8
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
9
- pipe = pipe.to("cuda")
10
 
11
  # Keep image history
12
  image_history = []
 
6
  # Load the model
7
  model_id = "stabilityai/stable-diffusion-2"
8
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
9
+ pipe = pipe.to("cpu")
10
 
11
  # Keep image history
12
  image_history = []