Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ from torch import autocast
|
|
| 3 |
from diffusers import StableDiffusionPipeline
|
| 4 |
|
| 5 |
YOUR_TOKEN="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"
|
| 6 |
-
device = "
|
| 7 |
-
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN
|
| 8 |
pipe.to(device)
|
| 9 |
|
| 10 |
|
|
|
|
| 3 |
from diffusers import StableDiffusionPipeline
|
| 4 |
|
| 5 |
YOUR_TOKEN="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"
|
| 6 |
+
device = "cpu"
|
| 7 |
+
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN)
|
| 8 |
pipe.to(device)
|
| 9 |
|
| 10 |
|