Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from diffusers import StableDiffusionPipeline
|
|
| 4 |
|
| 5 |
YOUR_TOKEN="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"
|
| 6 |
|
| 7 |
-
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN)
|
| 8 |
pipe.to("cuda")
|
| 9 |
|
| 10 |
prompt = "a photograph of an astronaut riding a horse"
|
|
|
|
| 4 |
|
| 5 |
YOUR_TOKEN="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"
|
| 6 |
|
| 7 |
+
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN, revision="fp16", torch_dtype=torch.float16)
|
| 8 |
pipe.to("cuda")
|
| 9 |
|
| 10 |
prompt = "a photograph of an astronaut riding a horse"
|