Spaces:
Runtime error
Runtime error
Commit
Β·
4a237f8
1
Parent(s):
a359b6d
Try ading stable diffusion 2
Browse files
app.py
CHANGED
@@ -90,7 +90,8 @@ models = []
|
|
90 |
api_key = os.environ['api_key']
|
91 |
my_token = api_key
|
92 |
|
93 |
-
pipe = StableDiffusionPipeline.from_pretrained("
|
|
|
94 |
# }}}
|
95 |
|
96 |
# pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=True, revision="fp16", torch_dtype=torch.float16).to("cuda")
|
|
|
90 |
api_key = os.environ['api_key']
|
91 |
my_token = api_key
|
92 |
|
93 |
+
pipe = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2", revision="fp16", torch_dtype=torch.float16, use_auth_token=my_token).to("cuda")
|
94 |
+
# pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", revision="fp16", torch_dtype=torch.float16, use_auth_token=my_token).to("cuda")
|
95 |
# }}}
|
96 |
|
97 |
# pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=True, revision="fp16", torch_dtype=torch.float16).to("cuda")
|