endyaris commited on
Commit
38c87cb
·
verified ·
1 Parent(s): 3ac77f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def load_model(model_name):
17
  pipe = StableDiffusionPipeline.from_pretrained(
18
  model_id, torch_dtype=torch.float16
19
  )
20
- pipe = pipe.to("cuda") # Use GPU
21
  return pipe
22
 
23
  # Load the default model
 
17
  pipe = StableDiffusionPipeline.from_pretrained(
18
  model_id, torch_dtype=torch.float16
19
  )
20
+ pipe = pipe.to("cpu") # Use GPU
21
  return pipe
22
 
23
  # Load the default model