Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
8 |
-
pipe.to("
|
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? ")
|