Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,12 +13,12 @@ import requests
|
|
13 |
|
14 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
15 |
|
16 |
-
model_id = "CompVis/stable-diffusion-
|
17 |
device = "cuda"
|
18 |
auth_token = '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'
|
19 |
|
20 |
#If you are running this code locally, you need to either do a 'huggingface-cli login` or paste your User Access Token from here https://huggingface.co/settings/tokens into the use_auth_token field below.
|
21 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, use_auth_token=
|
22 |
pipe = pipe.to(device)
|
23 |
torch.backends.cudnn.benchmark = True
|
24 |
|
|
|
13 |
|
14 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
15 |
|
16 |
+
model_id = "CompVis/stable-diffusion-v1-4"
|
17 |
device = "cuda"
|
18 |
auth_token = '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'
|
19 |
|
20 |
#If you are running this code locally, you need to either do a 'huggingface-cli login` or paste your User Access Token from here https://huggingface.co/settings/tokens into the use_auth_token field below.
|
21 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, use_auth_token="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", revision="fp16", torch_dtype=torch.float16)
|
22 |
pipe = pipe.to(device)
|
23 |
torch.backends.cudnn.benchmark = True
|
24 |
|