Keiraj commited on
Commit
de28523
·
verified ·
1 Parent(s): 1a47f5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,8 +4,8 @@ import torch
4
  # Load the pipeline
5
  pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1-base", torch_dtype=torch.float16)
6
 
7
- # If running on CUDA, ensure the model is moved to GPU for faster inference
8
- pipe.to("cuda")
9
 
10
  # Get the prompt from the user
11
  prompt = input("What do you want to see? ")
 
4
  # Load the pipeline
5
  pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1-base", torch_dtype=torch.float16)
6
 
7
+
8
+ pipe.to("cpu")
9
 
10
  # Get the prompt from the user
11
  prompt = input("What do you want to see? ")